- a=[float(input("enter a number ")),float(input("enter a number ")),float(input("enter a number "))]
- b=[float(0),float(0),float(0)]
- print(a)
- for x in range (3):
- if b[0] < a[x]:
- b[0]=a[x]
- for x in range (3):
- if b[0] > a[x] and b[1] < a[x]:
- b[1]=a[x]
- for x in range (3):
- if b[0] > a[x] and b[1] > a[x] and b[2] < a[x]:
- b[2]=a[x]
- print(b)