Python Hello World


In Python, the "print" statement is used to display something to the user.

We can use either double quotes or single quotes within the print statement.

Parenthesis is important.

  • script.py
1
2
print ("Hello World")
print ('Hello World')
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  • IPython Shell
In [1]:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

When we seperate two strings using a coma(,) each one separatly is called an argument.

In this case we can identify two arguments.

  • script.py
1
2
print ("Hello","World")
print ('Hello','World')
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  • IPython Shell
In [1]:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX





Concept & Design by Code94 Labs