Skip to content

Instantly share code, notes, and snippets.

@ericxyan
Created October 19, 2017 16:58
Show Gist options
  • Save ericxyan/34f63c024d08430e5618040db5ef70cc to your computer and use it in GitHub Desktop.
Save ericxyan/34f63c024d08430e5618040db5ef70cc to your computer and use it in GitHub Desktop.
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