a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89] num = input(\'Enter a number: \') a.append(int(num)) a.sort() print(a) print(a.index(num))
Enter a n