Python Start -:
Type Of python comments
1 one-line comment
# x,y,z = "Orange","Banana","cherry"
2 Two line commant
''' This is my comment
written in
more than one line
'''
How to use print command in python?
1 Type
a = 'Hello'
b = "Hello"
print(a,b)
2 Type
x,y,z = "Orange","Banana","cherry"
print(x,y,z)
3 Type
P = "Awsome"
print("This is a Python " + P)
4 Type
x = "Awsome"
def myfun():
print("Python is " + x)
myfun()
5 Type
x = "Awesome"
def myfun1():
x = "Python"
print("This is my python " + x)
def myfun2():
print("This is my python " + x)
myfun1()
myfun2()
Post a Comment
If you have any doubts. Please Let me Know