Parcourir la source

Merge pull request #10 from ferrisvienna/patch-1

Update 06-basics.md
Swaroop C H il y a 11 ans
Parent
commit
03a620a13a
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      06-basics.md

+ 2 - 2
06-basics.md

@@ -168,8 +168,8 @@ argument value into the place of the specification. There can be more
 detailed specifications such as:
 
 ~~~python
- decimal (.) precision of 3 for float '0.333'
->>> '{0:.3}'.format(1/3)
+ decimal (.) precision of 3 for float '0.14285714285714285'
+>>> '{0:.3}'.format(1/7)
  fill with underscores (_) with the text centered
  (^) to 11 width '___hello___'
 >>> '{0:_^11}'.format('hello')