Hi, I'm pretty dumb and studying in an unrelated field, but we have to do some coding. The code doesn't have to efficient, just to work.
Here I have to display a list of numbers, from the smallest to the biggest, but I can't make it work. When I put numbers in the inputs it only prints the first number and then stops. When I write them on the terminal on the right it just writes them like this 1,4,3=>(1, 4, 3). What am I doing wrong?
try
if x<=y && x<=z && y<=z
>>335572
Tried, it always prints the first line and then nothing
I tried writing it THE SAME FUCKING WAY in another page and it worked
Wtf?
>>335565
>When I put numbers in the inputs it only prints the first number and then stops.
AFAIK they need to be in a continuous loop.
Use "while" loop
var = 1
while var == 1 : #This constructs an infinite loop
>>335589
Thank you, but I solved it. I still don't know what was wrong. I wrote it on another page and it worked. Pic related, I used 3 random numbers
Dont forget the brackets ^^ that was the problem
>>335565
The way it is written there the print command only gets the first variable, then come two completely unrelated
variable callings that do absolutely nothing.
print needs to be shown that all of them are to be printed, e.g. print(x,y)
>>335709
I dunno why the other guys even responded. I'm not OP but thanks for being competent.