Feb-26-2021, 05:45 AM
In the example below, how do I list all (index numbers) of the existing elements of the array because using the index () without passing one or more arguments generates an error: TypeError: index expected at least 1 argument, got 0. Remembering that I need to list all indexes !
letter = ['a', 'e', 'i', 'o', 'i', 'u'] output = letter.index() print(output)