0

Why does python not behave the same on my phone and my computer? Else after an if will not indent back the same, then error

x=4 if x ==5: print("yes") else print("No")

24th Jan 2019, 4:22 AM
Brian
Brian - avatar
15 Antworten
+ 9
Ok let me know if it worked
24th Jan 2019, 7:58 AM
Uni
Uni - avatar
+ 8
You're welcome
24th Jan 2019, 7:54 AM
Uni
Uni - avatar
+ 8
Hmm guess now you know that you can get to your posts. If you have further questions or remarks please refrain from posting them here and use your message feature (unless you're on IOS)
17th Feb 2019, 12:16 PM
Uni
Uni - avatar
+ 7
You forgot the : after the else x=4 if x ==5: print("yes") else: print("No") However if you don't want those : you can do x=4 print("Yes" if x==5 else "No")
24th Jan 2019, 7:40 AM
Uni
Uni - avatar
+ 7
You could install an emulator maybe
17th Feb 2019, 12:08 PM
Uni
Uni - avatar
+ 1
Thank you
24th Jan 2019, 7:54 AM
Brian
Brian - avatar
0
I have not done this correction yet on the computer. But thank you for the observation. I had almost given up.
24th Jan 2019, 7:57 AM
Brian
Brian - avatar
0
Just saw this window for the first time. I was not aware this could be accessed
17th Feb 2019, 12:01 PM
Brian
Brian - avatar
0
Not sure hoy I got here, but intend to play with this till I can get here again at will
17th Feb 2019, 12:03 PM
Brian
Brian - avatar
0
I do enjoy learning python but the phone version is so small. Why can I not have the same solo learn app on my computer?
17th Feb 2019, 12:07 PM
Brian
Brian - avatar
0
Are you present now?
17th Feb 2019, 12:09 PM
Brian
Brian - avatar
0
This window....the one I am in now.... How did I get here?
17th Feb 2019, 12:10 PM
Brian
Brian - avatar
0
I was playing with buttons on the app..towards the top of the window (screen)
17th Feb 2019, 12:11 PM
Brian
Brian - avatar
0
Sorry how dumb I am, but not faking this. I am a beginner
17th Feb 2019, 12:12 PM
Brian
Brian - avatar
0
Before just now, I was now aware I could get here and see answers to my posted questions.
17th Feb 2019, 12:14 PM
Brian
Brian - avatar