Learn Python the Hard Way by Zed A. Shaw

Exercise 1

All about Printing


In [10]:
print 'Hello World'
print "I like typing this"
print "I'd much rather you 'not'."
print 'I "said" do not touch this'
print "="*20
print "First line\nNext line\n\twith indentation"
# With raw input
print "How old are you?"
age = raw_input()
print "You're "+age+" years old"


Hello World
I like typing this
I'd much rather you 'not'.
I "said" do not touch this
====================
First line
Next line
	with indentation
How old are you?
29
You're 29 years old

In [2]:


In [ ]: