Write a program to Return the number of times the specified element appears in the list


Topic: Write a program to Return the number of times the specified element appears in the list

Solution

vowels = ['a', 'e', 'i', 'o', 'i', 'u']
count = vowels.count('i')
print('The count of i is:', count)



List all Python Programs