-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathex01.py
More file actions
23 lines (17 loc) · 773 Bytes
/
ex01.py
File metadata and controls
23 lines (17 loc) · 773 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Exercise 1: A Good First Program
# http://learnpythonthehardway.org/book/ex1.html
print "Hello World!"
print "Hello Again"
print "I like typing this."
print "This is fun."
# print statement makes Terminal display what's in "quotes"
print 'Yay! Printing.' # 'single' quotes work as well
print "I'd much rather you 'not'."
print 'I "said" do not thouch this.'
# alternation of "double" & 'single' quotes possible, if needed withing string
# Study Drill 1: Make your script print another line.
print "Another line..."
# Study Drill 2: Make your script print only one of the lines.
# Either remove excess lines or...
# Study Drill 3: Put a '#' (octothorpe) character at the beginning of a line. What did it do? Try to find out what this character does.
# ...comment out