-
-
Save fatosmorina/743124f84258f009cc43d48c5d515fa2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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