if
elif
if max<a[i]: max=a[i] if min>a[i]: min=a[i]
import random a = [random.randint(-100,100) for i in range (10)] print(a) a.sort() print(a[-1],a[0])
max=0 min=0
min
max
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)