Advertisement
Shahar_Goldenberg

Untitled

Oct 31st, 2021
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.53 KB | None | 0 0
  1. hospitel = {}
  2.  
  3. amountOfHospitel = int(input("Enter amount of hospitel: "))
  4. for x in range(amountOfHospitel):
  5.     hospitelName = input("hospitel name: ")
  6.     amountOfPatients = int(input("Enter amount of patients: "))
  7.     for i in range(amountOfPatients):
  8.         name = input("Enter name: ")
  9.         age = float(input("Enter age: "))
  10.         vaccin = input("vaccin (yes/no): ")
  11.         if vaccin == "no" or vaccin == "No" or vaccin == "n":
  12.             hospitel[hospitelName] = [name, age, vaccin]
  13.            
  14. pprint(hospitel)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement