Skip to content

Instantly share code, notes, and snippets.

@fatosmorina
Created August 15, 2021 16:11
Show Gist options
  • Save fatosmorina/743124f84258f009cc43d48c5d515fa2 to your computer and use it in GitHub Desktop.
Save fatosmorina/743124f84258f009cc43d48c5d515fa2 to your computer and use it in GitHub Desktop.
students = [
{"name": "Florian", "height": 1.70},
{"name": "Armend", "height": 1.83},
{"name": "Besart", "height": 1.75}
]
heights = []
for student in students:
heights.append(student["height"])
print(heights) # [1.7, 1.83, 1.75]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment