Run
a=[18, 52, 23, 41, 32] # smallest number smallest = a[0] if a else None # find smallest for i in a: if i<smallest: smallest=i print("Smallest element is: ", smallest)
Output