-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlist1.py
More file actions
24 lines (19 loc) · 724 Bytes
/
list1.py
File metadata and controls
24 lines (19 loc) · 724 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
'''students = {"hermonie":"griffindor",
"harry": "griffindor",
"ron":"griffindor",
"draco":"sylsetherinn",
}
print(students["hermonie"])
print(students["ron"])
print(students["draco"])
print(students["harry
for student in students :
print(student ,students[student], sep=", ")'''
students =[
{"nme":"hermoninee","house": "gryyindor" ,"patronous": "otter" },
{"nme":"harry","house":"gryffindor", "patronous":"stag"},
{"nme":"ron","house":"gryffidor","patronous":"stag"},
{"nme":"darco","house":"syllethein","patronous":None}
]
for student in students:
print(student["nme"],student["house"],student["patronous"],sep=" ")