Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python 2 vs Python 3 Print Statement

#Python 3

def main():
  print("Hello World!")
  
if __name__== "__main__":
  main()

#Python 2

def main():
  print "Hello World!"
  
if __name__== "__main__":
  main()
Source by www.guru99.com #
 
PREVIOUS NEXT
Tagged: #Python #Python #Print #Statement
ADD COMMENT
Topic
Name
1+6 =