We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 028f762 commit e6f40a9Copy full SHA for e6f40a9
1 file changed
PyPortal/PyPortal_Astronauts/V2/code.py
@@ -81,15 +81,15 @@ def fetch_astronauts():
81
data = json.loads(raw)
82
else:
83
data = raw
84
- result = [
+ humans = [
85
a for a in data["results"]
86
if a.get("type", {}).get("name") != "Non-Human"
87
]
88
- num_people = len(result)
+ num_people = len(humans)
89
del data
90
del raw
91
gc.collect()
92
- return num_people, result
+ return num_people, humans
93
94
95
def build_name_list(astronaut_list):
0 commit comments