Comments, Escape Sequences & Print Statement Code in Python

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
#Simple print statement
print("Hellow World")

print("Hi","Rahul") #If you use 2 and more values in print so for space you use ,

print("This is peint in man line")
print("This is print in new line") #Python show every new print in new line

print("Rahul is a good boy", end=" but ")
print("Rohit is More Good boy") #you can see if you dont want new line so you can use , end=""

print("Sam is Our prime\nAccount name") #using \n For new line
print("You Can watch Now You \'See Me Movie Bcoz its good\' movie") #Using Escape Characters
print("You Also Can watch Now You \"See Me Movie Bcoz its good 2\" movie")

Post a Comment

1 Comments