Skip to content

Instantly share code, notes, and snippets.

@fatosmorina
Created August 15, 2021 16:11
Show Gist options
  • Save fatosmorina/4237201d1405bf89b718e96e5d5491dd to your computer and use it in GitHub Desktop.
Save fatosmorina/4237201d1405bf89b718e96e5d5491dd 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 = 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