0
Help me
Totalnumbers=int(input()) x=[] for i in range(Totalnumbers): Numbers=int(input()) x.append(Numbers) z=0 y=0 while z<Totalnumbers: z=+1 if x[y]>x[z]: x[y],x[z]=x[z],x[y] y=+1 Totalnumbers=-1 print(x[Totalnumbers]) No output
2 Answers
+ 2
Just glancing at the code, it stands out that you probably intended to increment in places where you have =+1 and decrement where you have =-1. If so, then correct them with +=1 and -=1, respectively.
+ 1
Thank you