Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def main():
- total = list()
- my_dict = {}
- more = "y"
- while True:
- if more == "y":
- keyy = input("Name: ")
- valuee= input("Number: ")
- more = input("More data (y/n)? y ")
- my_dict[keyy] = valuee
- total.append(my_dict)
- if more == "n":
- break
- print(total)
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement