Run
a = [18, 52, 23, 41, 32] # Variable to store largest number ln = a[0] if a else None # Find largest number for i in a: if i>ln: ln=i print("Largest element is: ",ln)
Output