Professional Documents
Culture Documents
3.1 Python Basics
3.1 Python Basics
Multi-Line Statements:
add= 1 + \
2 + \
3
Quotation:
word = 'word'
sentence = "This is a sentence."
paragraph = """This is a paragraph.
It is made up of multiple lines and sentences."""
Comment:
# This is a single-line comment.
This is a multiline comment.
'''
User Input :
input("Press the enter key to exit.")
Indentation:
--It is very important for python and mandatory. It indicates a block of code.
if 5 > 2:
print("Five is greater than two!")
vi basic.py
import sys
print("List of arguments " +str( sys.argv))