Apr-14-2020, 09:03 PM
Hi, i im new in Python, and i have troubles with understanding why my code cant sort numbers from smallest to biggest :
I feel like numbers are just randomly bounded with A,B,C letters.
a = input ('a Size: ') b = input ('b Size: ') c = input ('c Size: ') if a>b and a>c: C = a elif c<b>a: C=b else: C=c if a<b and a<c: A=a elif b<a and b<c: A=b else: A=c if b<a<c or b>a>c: B=a elif a<b<c or a>b>c: B=b else: B=c print (A,B,C)
I feel like numbers are just randomly bounded with A,B,C letters.