Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #LISTOFHOBBY
- hobby = []
- stop = False
- i = 0
- name = input("Hello! What's your name? ")
- while(not stop):
- new_hobby = input("Input hobby number -> {}:".format(i))
- hobby.append(new_hobby)
- i += 1
- ask = input("Wanna insert more hobbies?: ")
- if ask == "no" or ask == "No":
- stop = True
- print("=" *10)
- print("You have {} hobbies" .format(len(hobby)) , name , "!")
- for hb in hobby:
- print("- {}".format(hb))
- #Talice
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement