-
-
Save fatosmorina/4237201d1405bf89b718e96e5d5491dd 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 = 3 * [0] | |
for i in range(3): | |
heights[i] = students[i]["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