Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pysheet

>>> print "Hello World"  # print is a statement
Hello World
>>> from __future__ import print_function
>>> print "Hello World"
  File "<stdin>", line 1
    print "Hello World"²
                      ^
SyntaxError: invalid syntax
>>> print("Hello World") # print become a function
Hello World
Source by www.pythonsheets.com #
 
PREVIOUS NEXT
Tagged: #pysheet
ADD COMMENT
Topic
Name
8+5 =