From cea5f9a5912df145cc1cf729a077f482d09f07c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Tue, 25 Dec 2018 14:38:47 +0100 Subject: [PATCH] Format --- README.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 42ded74..e935c8e 100644 --- a/README.md +++ b/README.md @@ -281,11 +281,9 @@ import re '187' ``` -#### Binary, at least 10 spaces wide, filled with zeros: -```python ->>> f'{123:010b}' -'0001111011' -``` +#### Float presentation types: +* `'e'` - Exponent +* `'f'` - Fixed point: .f #### Integer presentation types: * `'b'` - Binary @@ -294,11 +292,16 @@ import re * `'x'` - Hex * `'X'` - HEX +#### Binary, at least 10 spaces wide, filled with zeros: +```python +>>> f'{123:010b}' +'0001111011' +``` ### Text Wrap ```python import textwrap -textwrap.wrap(text, width) + = textwrap.wrap(text, width) ```