def get_index_of_smallest(numbers):
smallest_index = []
for element in range (len(numbers)):
element = numbers.index(min(numbers))
smallest_index = element + 1
return smallest_index
def test_get_index_of_smallest():
list1 = [23,3,6,5,12,9,7,4]
print(get_index_of_smallest(list1))
test_get_index_of_smallest()
2
a_list = ["jane","aaron","cindy","aaron"]
most_common = max(set(a_list), key = a_list.count)
print(most_common)
aaron
from statistics import multimode
most_common_names = (["jane","aaron","jane","cindy","aaron"])
print(multimode(most_common_names))
['jane', 'aaron']
x = "malayalam"
w = ""
for i in x:
w = i+w
if(x == w):
print("yes")
else:
print("no")
yes