Created
October 19, 2017 16:58
-
-
Save ericxyan/34f63c024d08430e5618040db5ef70cc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
catNames=[] | |
while True: | |
print('Enter the name of cat'+str(len(catNames))+'(Or enter nothing to stop.):') | |
name=input() | |
if name=="": | |
break | |
catNames=catNames+[name] #1st concatenation | |
print('The cat names are:') | |
for name in catNames: | |
print(''+name) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment