diff --git a/README.md b/README.md index aa2e18b..dea7a7e 100644 --- a/README.md +++ b/README.md @@ -286,6 +286,11 @@ String = textwrap.wrap(, width) # Nicely breaks string into lines. ``` +```python + = bin() # Binary representation starting with '0b'. + = hex() # Hexadecimal representation starting with '0x'. +``` + ### Char ```python = chr() # Converts int to unicode char. diff --git a/index.html b/index.html index 72daf40..f6f1972 100644 --- a/index.html +++ b/index.html @@ -389,6 +389,9 @@ Point(x=1, y=2
<bool> = <str>.isnumeric()                   # True if str contains only numeric characters.
 <list> = textwrap.wrap(<str>, width)         # Nicely breaks string into lines.
 
+
<str>  = bin(<int>)                          # Binary representation starting with '0b'.
+<str>  = hex(<int>)                          # Hexadecimal representation starting with '0x'.
+

Char

<str> = chr(<int>)  # Converts int to unicode char.
 <int> = ord(<str>)  # Converts unicode char to int.