def indexOfSmallestElement(lst):
return lst.index(min(lst))
print(indexOfSmallestElement([23, 3, 6, 5, 12, 9, 7, 4]))
1
from collections import Counter
def most_common_name(lst):
word_counts = Counter(lst)
top_three = word_counts.most_common(3)
print(top_three)
List= ["Jane", "Aaron", "Jane", "Cindy", "Aaron"]
print (most_common_name(List))
[('Jane', 2), ('Aaron', 2), ('Cindy', 1)] None
def check_word_isPalindromic(lst):
if lst[::] == lst[::-1]:
print("true")
else:
print("False")
list1 = ["I",9,"I"]
print(check_word_isPalindromic(list1))
true None