-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathex7.py
40 lines (38 loc) · 1.04 KB
/
ex7.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
32
33
34
35
36
37
38
39
40
#printing a string
print "Mary had a little lamb."
#printing a string
print "Its fleece was white as %s." %'snow'
#printing a string
print "And everywhere that mary went."
#printing a string . 10 times
print "." * 10 # what'd that do?
#declaring a variable end1
end1 = "C"
#declaring a variable end1
end2 = "h"
#declaring a variable end1
end3 = "e"
#declaring a variable end1
end4 = "e"
#declaring a variable end1
end5 = "s"
#declaring a variable end1
end6 = "e"
#declaring a variable end1
end7 = "B"
#declaring a variable end1
end8 = "U"
#declaring a variable end1
end9 = "r"
#declaring a variable end1
end10 ="g"
#declaring a variable end1
end11 = "e"
#declaring a variable end1
end12 = "r"
#declaring a variable end1
# watch that comma at the end. try removing it to see what happens
# printing the variables end1 to end 6 with concattinating the variables using + symbol
print end1 + end2 + end3 + end4 + end5 + end6
# printing the variables end7 to end12 with concattinating the variables using + symbol
print end7 + end8 + end9 + end10 + end11 + end12