summaryrefslogtreecommitdiffhomepage
path: root/python.html.markdown
diff options
context:
space:
mode:
authorSriram Sundarraj <sriram.s.1994@gmail.com>2015-04-24 23:29:01 +0530
committerSriram Sundarraj <sriram.s.1994@gmail.com>2015-04-24 23:29:01 +0530
commitc2963cdc31ea9c0cce9d5abf8b0a6d606d11b3a0 (patch)
tree186bb621e7d7225c3d631d1fe91727d4c161f47a /python.html.markdown
parent6b6342a7dc8d4280eb4465894bc15cdd5b7ff383 (diff)
[python/en] Removed python3 print.
Diffstat (limited to 'python.html.markdown')
-rw-r--r--python.html.markdown8
1 files changed, 1 insertions, 7 deletions
diff --git a/python.html.markdown b/python.html.markdown
index 899a97f8..7281a330 100644
--- a/python.html.markdown
+++ b/python.html.markdown
@@ -141,14 +141,8 @@ bool("") # => False
## 2. Variables and Collections
####################################################
-# Python has a print statement, in all 2.x versions but removed from 3.
+# Python has a print statement
print "I'm Python. Nice to meet you!"
-# Python also has a print function, available in versions 2.7 and 3...
-# but for 2.7 you need to add the import (uncommented):
-from __future__ import print_function
-print("I'm also Python! ")
-# This is useful to maintain compatibility,
-# but for this doc, we'll use the python 2 print statement
# No need to declare variables before assigning to them.
some_var = 5 # Convention is to use lower_case_with_underscores