diff options
author | Ricky Stewart <rbstewart@uchicago.edu> | 2013-06-28 23:43:00 -0400 |
---|---|---|
committer | Ricky Stewart <rbstewart@uchicago.edu> | 2013-06-28 23:43:00 -0400 |
commit | 2ad3be3860d4ea23e0f11d2ac90eea76bf0f22bf (patch) | |
tree | 0ea96b8978808f7f41460cceeb4aebb37c65d87c /python.html.markdown | |
parent | aac6cb65c150eb8e795a9e23606d7491bdc8bb72 (diff) | |
parent | 2f54e2fe37f44f94e9513191f15a1123aa3df13d (diff) |
merging in new pointer section from origin
Diffstat (limited to 'python.html.markdown')
-rw-r--r-- | python.html.markdown | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python.html.markdown b/python.html.markdown index a17b7645..4cfecbbd 100644 --- a/python.html.markdown +++ b/python.html.markdown @@ -34,11 +34,11 @@ to Python 2.x. Look for another tour of Python 3 soon! # Division is a bit tricky. It is integer division and floors the results # automatically. -11 / 4 #=> 2 +5 / 2 #=> 2 # To fix division we need to learn about floats. 2.0 # This is a float -5.0 / 2.0 #=> 2.5 ahhh...much better +11.0 / 4.0 #=> 2.75 ahhh...much better # Enforce precedence with parentheses (1 + 3) * 2 #=> 8 |