27th February 2023 list = [ 'one', 'two', 'three', 'four' ] # Loop over the list using the index and the item. for i, item in enumerate(list): print(i, item.title())This prints out the following: 0 One 1 Two 2 Three 3 Four Python Add new comment You must have JavaScript enabled to use this form. Your name Email The content of this field is kept private and will not be shown publicly. Comment Leave this field blank
Add new comment