Android app | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Android app

Does anyone else had same problem as me when tried to write 'else:'? I could write 'else' but couldn't write ':'.

9th Apr 2017, 10:52 AM
Mlađen Krndija
Mlađen Krndija - avatar
7 Answers
+ 1
does this result in a error ?
9th Apr 2017, 12:16 PM
root
root - avatar
0
Yes.
9th Apr 2017, 4:26 PM
Mlađen Krndija
Mlađen Krndija - avatar
0
something is wrong pal
11th Apr 2017, 7:44 AM
HEC
HEC - avatar
0
look this (error on output): if 1 > 3: print("yes") else: print("no") correct will be : if 1 > 3: print("yes") else: print("no")
11th Apr 2017, 11:43 AM
root
root - avatar
0
@neugen hack Well, this was easy question, I knew the answer, but I couldn't write colon after 'else'. This caused error every time. When I tried to answer via PC, everything were fine. I guess there is some bug in SoloLearn Android app.
11th Apr 2017, 3:33 PM
Mlađen Krndija
Mlađen Krndija - avatar
0
just a bug
12th Apr 2017, 2:49 PM
root
root - avatar
- 1
you can post here a little exemple?
11th Apr 2017, 11:38 AM
root
root - avatar