Answers for "how to get index of week in list in python"

1

how to get index of week in list in python

days = ["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]
for index,day in enumerate(days):
    if index >= 0: index += 1
    print(index, day)
Posted by: Guest on October-03-2021

Code answers related to "how to get index of week in list in python"

Python Answers by Framework

Browse Popular Code Answers by Language