Created
July 26, 2019 16:23
-
-
Save MinmoTech/5983030a0c852566eb92c3c733e22565 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
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