Skip to content

Instantly share code, notes, and snippets.

@MinmoTech
Created July 26, 2019 16:23
Show Gist options
  • Save MinmoTech/5983030a0c852566eb92c3c733e22565 to your computer and use it in GitHub Desktop.
Save MinmoTech/5983030a0c852566eb92c3c733e22565 to your computer and use it in GitHub Desktop.
def print_first_element_from_sublist(list):
for sublist in list:
print(sublist[0])
list = [[0,1],[3,4]]
print_first_element_from_sublist(list)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment