minte9
LearnRemember / PYTHON



Prompt

 
""" Open command prompt
"""

$ python --version  # Python 3.9.7
$ python
>>> print('Hello World')   # Hello World

File

 
""" python hello_world.py
"""

print('Hello World') 

"""
    Hello World
"""

Mistakes

 
""" Making mistakes on purpose, helps you remember
"""

print 'Hello World'

"""
    SyntaxError: Missing parentheses in call to 'print'. 
"""






Questions and answers




Output "Hello World" in Python

  • a) print ('Hello World!')
  • b) print "Hello World!"


References





Connected Graph