Jul-12-2017, 04:43 PM
my question here
I am not getting the proper output. Please help.
find the index of "Annual" in spell_list
# [ ] using range, print the spell_list including "Annual" to end of list
I am not getting the proper output. Please help.
find the index of "Annual" in spell_list
# [ ] using range, print the spell_list including "Annual" to end of list
1 2 3 4 5 6 7 8 |
spell_list = [ "Tuesday" , "Wednesday" , "February" , "November" , "Annual" , "Calendar" , "Solstice" ] for count in range ( 4 , len (spell_list)): print (spell_list[count]) from pprint import pprint spell_list = [ "Tuesday" , "Wednesday" , "February" , "November" , "Annual" , "Calendar" , "Solstice" ] b = dict ( enumerate (spell_list)) pprint(b[ 4 ]) |