diff --git a/README.md b/README.md index e5e6218..1dc653f 100644 --- a/README.md +++ b/README.md @@ -167,7 +167,7 @@ str.replace(text, old, new) .split(sep=None, maxsplit=-1) .strip() .join() -.startswith() +.startswith() # Pass tuple of strings for multiple options. .isnumeric() # True if str contains only numeric characters. ``` @@ -175,6 +175,8 @@ str.replace(text, old, new) ```python print( [, , end='', sep='', file=]) ``` +**For stderr use 'file=sys.stderr'** + ### Regex ```python @@ -221,9 +223,10 @@ re.split(, text, maxsplit=0) # Use brackets in regex to keep the matches '187' ``` +#### Binary, at least 10 spaces wide, filled with zeros. ```python ->>> f'{123:020b}' -'00000000000001111011' +>>> f'{123:010b}' +'0001111011' ``` #### Integer presentation types: @@ -376,7 +379,7 @@ multiply_by_3 = multiply_closure(3) #### Or: ```python from functools import partial -partial(, ) +partial(, [, , ...]) ``` Decorator