Respuesta :
Answer:
Let us write:
If a>b:
elif b<c:
else:
And now,
if b>c:
elif a>b:
else:
Now, for the calculation, it is quite clear that long-distance has to be traveled in the second case, as compared to the first case. And hence, the second code. and which is not in the proper code is going to take more time. And the first code which is in the proper format is going to take less time. And that is why we need to have the if, elif and the else statement in the proper format.
Explanation:
Please check the answer section.
Answer:
I had trouble with this one myself, but here is the answer I came up with:
The reason if, elif, and else statements must be in the correct order is simply because of syntax errors. For example, if you put it in the order if, else, and then elif, it would cause a syntax error because they are not meant to be put into that order. It simply does not work.
I hope you all have a great and stress free day! :)
Explanation: