+ 1
Syntax error?
Line 85 produces a syntax error even though its using the same elif script as all the other functions.. Wtf??? https://code.sololearn.com/coY4N46jW3Iu/?ref=app
5 Respuestas
+ 2
All code in the same indentation level must have the same number of espaces. Your elif (line 85) has more espaces than the expected by the closest enclosing block.
Learn about it:
https://code.sololearn.com/cmmTiDi8mr03/?ref=app
https://code.sololearn.com/cT5BRIbkia21/?ref=app
+ 2
You had done only 3 type of error :-
1. Indentation Error (Extra Spaces in line 85)
2. Syntax error (with open("savefile.txt", "w") as savefile :
print(savefile.read())
is the correct sysntax
3. Using sololearn for mulitple input (i.e. num1 and num2) in your program. Try to run it in a separate IDE or app like pydroid
And this is ur fix...
https://code.sololearn.com/cCDKDubXPcoM/?ref=app
+ 1
Christian Jacob O'Neill You can use Sololearn for multipe inputs but you need to enter everything at the very beginning of the program and every input in a single line. For example:
*
5
4
quit
Learn more here:
https://code.sololearn.com/WhiNb9BkJUVC/?ref=app
+ 1
I have been copying my scripts over to pydroid 3 to see how things run properly, I only use sololearn when trying to put in new codes and checking them quick but I try to see correct functionality through pydroid
- 1
I told u hah ah ahahahahahaha 😎