Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hospitel = {}
- amountOfHospitel = int(input("Enter amount of hospitel: "))
- for x in range(amountOfHospitel):
- hospitelName = input("hospitel name: ")
- amountOfPatients = int(input("Enter amount of patients: "))
- for i in range(amountOfPatients):
- name = input("Enter name: ")
- age = float(input("Enter age: "))
- vaccin = input("vaccin (yes/no): ")
- if vaccin == "no" or vaccin == "No" or vaccin == "n":
- hospitel[hospitelName] = [name, age, vaccin]
- pprint(hospitel)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement