Home » NO IDEA » Printing

Printing

Blog Stats

  • 15,880 hits
December 2012
M T W T F S S
« Sep   Jan »
 12
3456789
10111213141516
17181920212223
24252627282930
31  


we gonna see about the various way to print

using three “”” we can print multiple  lines using .If   you use ” you can print only one line try to print multiple you can spot the error and wi

#printing
one="C";
two="S";
three="E";
print "*"*10;
print one+two,
print three;
print "*"*10;
print one+two
print three
print "*"*10;
print one+two+three;
print "\n Computer \nscience \nEngineering ";
print "*"*10;
print """this is going
to be in
multiple lines"""#""" with this you can print multiple lines
print"I am 6'2\" tall."#thsi neglects the double quote
print 'I am 6\'2" tall.'#this neglects the single quote
print"The DEP ","\n\t",one,"\n\t",two,"\n\t",three,

output

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s