Python - Session - 1 CLASS
Python - Session - 1 CLASS
Student copy
https://www.python.org/downloads/
My Computer >> (RC) Properties >>Advanced system settings>> (Tab)Advance >> Environment variables
Edit path:-
C:\Python27;C:\Python27\Lib\site-packages;C:\Python27\Scripts;
IDLE
Akhil
Python study material
Student copy
# ... and now a third! text = "# This is not a comment because it's inside quotes.”
Statements in Python typically end with a new line. Python does, however, allow the use of the line
continuation character (\) to denote that the line should continue. For example:
if True:
print "True"
else:
print "False"
Python accepts single ('), double (") and triple (''' or """) quotes to denote string literals, as long as the
same type of quote starts and ends the string.
The triple quotes can be used to span the string across multiple lines. For example, all the following are
legal:
word = 'word'
sentence = "This is a sentence."
paragraph = """This is a paragraph. It is
Akhil
Python study material
Student copy
Akhil