The following program is supposed to accept an integer as user input. That input is used to define a limit. The program then looks through a sorted list and finds the position of the first number that is greater than that limit. It then outputs the position. If there is no number larger than the user's input, it outputs "Not found". For example, if the input is 20 and the list is [0,7,11,21,50,64], the output should be "Found at position 3". And if the input is 64 and the list is [0,7,11,21,50,64], the output should be "Not found". There are five errors in the following program that prevent it from doing what it is supposed to do. Your task is to find and fix those errors and then write the code that should appear on that line to make the code work as intended.
1. limit = int(input("Enter a value: "))
2. list1 = [0,7,11,21,50,64]
3. sorted_list = sorted(list1)
4. print(sorted_list)
5. found = False
6. value = -1
7. for position in range(len(sorted_list)):
8. if sorted_list[position] > limit and not found:
9. found = True
10. value = position
11. if value != -1:
12. print("Found at position {}".format(value))
13. else:
14. print("Not found.")