# list of numbers
list1 = [10, 20, 9, 69, 9]
# sorting the list
list1.sort()
# printing the first element
print("Smallest element is:", list1[0])
numbers = [1, 5, 2, 10, 9, 3, 5]
print(min(numbers))
def find_small(B,small):
small = small + 1
if small not in B:
return small
else:
return find_small(B,small)
def sort_small (A):
smallest_number = min(A)
if smallest_number > 1:
return smallest_number -1
elif smallest_number < 1:
if 1 not in A:
return 1
else:
print(find_small(A,smallest_number))
else:
print(find_small(A,smallest_number))
sort_small([1,2,3])