Created
September 24, 2020 18:30
-
-
Save codetombomb/de5dfb7a875836dfa11d024566076f7c to your computer and use it in GitHub Desktop.
enumerate
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_days(): | |
days_of_week = ["Mon", "Tues", "Wed", "Thurs", "Fri", "Sat", "Sun"] | |
for i, d in enumerate(days_of_week): | |
print(i, d) | |
if __name__ == "__main__": | |
print_days() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment