-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathex1.py
31 lines (29 loc) · 1.06 KB
/
ex1.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
print "Hello World!"
print "Hello Again"
print "I like typing this."
print "This is fun."
print 'Yay! Printing.'
print "I'd much rather you 'not'."
print 'I "said" do not touch this.'
#Study Exercises
#1. Make your script print another line.
#2. Make your script print only one of the lines.
#3. Put a '#' (octothorpe) character at the beginning of a line. What did it do? Try to find out what this character does.
print "##########################"
print "1: Make your script print another line."
print "Hello World!"
print "Hello Again"
print "I like typing this."
print "This is fun."
print 'Yay! Printing.'
print "I'd much rather you 'not'."
print 'I "said" do not touch this.'
print "another line!"
print "##########################"
#2. Make your script print only one of the lines.
print "2. Make your script print only one of the lines."
if True:
print "only one line"
print "##########################"
print "3. Put a '#' (octothorpe) character at the beginning of a line. What did it do? Try to find out what this character does."
print 'No lines printed; all commented out'