I wrote the following code on VSCode and when i print, only the last line " print("Done") is showing in output. The ones above linked to the if statement are not showing in output. Please help me.
Following are my code;
temperature = 30
if temperature > 30:
print("It is warm")
print("drink water")
print("Done")
Following line is what i get as output;
[Running] python -u "c:\Users\USER\Desktop\Mosh Adani - Python\Hello World\3.2.py" Done
[Done] exited with code=0 in 0.055 seconds
Aucun commentaire:
Enregistrer un commentaire