Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

start index from 1 in python

days = ["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]
for index,day in enumerate(days):
    #this will convert index starting from 0 to 1
    if index >= 0: index += 1
    print(index, day)
 
PREVIOUS NEXT
Tagged: #start #index #python
ADD COMMENT
Topic
Name
6+6 =