Print Function - Coders PlayGround

Learn to code and change the future!

Tuesday, 29 August 2017

Print Function


Hello friends! This is a simple program to print on Screen


To print the content we simply use the print() function.
Whatever is written inside the double or single quotes gets printed.

Check out the following example:



print ("Welcome to TechandCoders site")

# we can also use single quotes

print ('Let us learn python programming')

# '\' escape character

print ("She's here!")
print('She\'s here!!!')






Now, suppose you want to print the value of a variable. How would you do it?

x = 5

# Simply write the name of the variable without any single or double quotes.

print (x)

Run this code and check


Please comment and share!
Any queries, mail me at: techandcoders@gmail.com

Thank you!

PropellerAds