def get_index_of_smallest(numbers):
return numbers.index(min(numbers))+1
print(get_index_of_smallest([23, 3, 6, 2, 5, 12, 9, 7, 4]))
4
from collections import Counter
data_set = ["Jane", "Aaron", "Cindy", "Aaron","Cindy"]
most_common_names = [word for word, word_count in Counter(data_set).most_common(2)]
print (most_common_names)
['Aaron', 'Cindy']
number=int(input("Enter any number :"))
#store a copy of this number
temp=number
#calculate reverse of this number
reverse_num=0
while(number>0):
#extract last digit of this number
digit=number%10
#append this digit in reveresed number
reverse_num=reverse_num*10+digit
#floor divide the number leave out the last digit from number
number=number//10
#compare reverse to original number
if(temp==reverse_num):
print("True")
else:
print("False")
Enter any number :555 True