-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathex7.py
More file actions
21 lines (19 loc) · 689 Bytes
/
ex7.py
File metadata and controls
21 lines (19 loc) · 689 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
print("Marry had a little lamb.") # printing
print("Its fleece was white as {}.".format('snow')) # printing with format
print("And everywhere that Mary went.")
print("." * 10) # what'd that do? #it would multiply 10 times of given string
cnd1 = "C" #initialization
cnd2 = "h" #initialization
cnd3 = "e" #initialization
cnd4 = "e" #initialization
cnd5 = "s" #initialization
cnd6 = "e"
cnd7 = "B"
cnd8 = "u"
cnd9 = "r"
cnd10 = "g"
cnd11 = "e"
cnd12 = "r"
# watch that comma at the end. try removing it to see what happens
print(cnd1 + cnd2 + cnd3 + cnd4 + cnd5 + cnd6, end=' ') #cascading variables // end = prevents from getting new line
print(cnd7 + cnd8 + cnd9 + cnd10 + cnd11 + cnd12)