Day2_Python Data-Type
Day2_Python Data-Type
PPT SL.NO.: 1 of 19
Numeric Literals:
◻Using Triple quotes : we can specify multi-line strings using triple quotes.
◻Example
◻ For Example:
Example:
format('Hello', '<30')
'Hello '
Example:
format('Hello', '>30')
' Hello'
Comments and Constants in Python
❑ Creating a Comment
Comments starts with a #, and python will ignore them:
Example :
# this is a comment
print(“Hello”)
Example:
if 5 > 2:
print("Five is greater than two!")
Note: Python will give you an error if you skip the indentation.
Reserved Keywords in Python
Vinay Kant
Contact no: +91-8393903778
email: [email protected]
NIEL www.nielit.gov.in/haridwar