Skip to content

Commit e6f40a9

Browse files
authored
Fix one scope issue not caught previously
1 parent 028f762 commit e6f40a9

File tree

1 file changed

+3
-3
lines changed
  • PyPortal/PyPortal_Astronauts/V2

1 file changed

+3
-3
lines changed

PyPortal/PyPortal_Astronauts/V2/code.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,15 @@ def fetch_astronauts():
8181
data = json.loads(raw)
8282
else:
8383
data = raw
84-
result = [
84+
humans = [
8585
a for a in data["results"]
8686
if a.get("type", {}).get("name") != "Non-Human"
8787
]
88-
num_people = len(result)
88+
num_people = len(humans)
8989
del data
9090
del raw
9191
gc.collect()
92-
return num_people, result
92+
return num_people, humans
9393

9494

9595
def build_name_list(astronaut_list):

0 commit comments

Comments
 (0)