[Python #1] create e7.py

This commit is contained in:
kjg 2020-05-18 23:35:46 +09:00
parent 63495c51de
commit 9c8e7d9045
2 changed files with 29 additions and 1 deletions

View file

@ -0,0 +1,21 @@
print("Mary had a little lamb.")
print("Its fleece was white as {}.".format('snow'))
print("And everywhere that Mary went.")
print("." * 10) # what'd that do?
end1 = "C"
end2 = "h"
end3 = "e"
end4 = "e"
end5 = "s"
end6 = "e"
end7 = "B"
end8 = "u"
end9 = "r"
end10 = "g"
end11 = "e"
end12 = "r"
# watch end = ' ' at the end. try removing it to see what happens
print(end1 + end2 + end3 + end4 + end5 + end6, end=' ')
print(end7 + end8 + end9 + end10 + end11 + end12)

View file

@ -1,4 +1,5 @@
*python
* learning python
*** Python #1:
**** ex0
@ -59,3 +60,9 @@ I said: There are 10 types of people.
I also said: 'Those who know binary and those who don't.'
Isn't that joke so funny?! False
This is the left side of...a string with a right side.
**** ex7
Mary had a little lamb.
Its fleece was white as snow.
And everywhere that Mary went.
..........
Cheese Burger