+ 2

Code to learn stuff for school doesn't work

I'm a student at the moment and just started with Python. Today I decided to write a code which should ask me something and as input, I give it an answer. when the answer is right, it should say 'true'(vrai) and if not 'False, x would be correct'(Faux,...) My problem is now, that I can give an input but don't get 'true' or 'false' as output. Here is my code: https://code.sololearn.com/cSs9Oii3s0L9

21st Oct 2020, 3:53 PM
Leuck Chris
Leuck Chris - avatar
6 odpowiedzi
+ 4
That Is a limit of SoloLearn playground The bypass I have found Is to embed your code insider Brython Like this https://code.sololearn.com/WG5CPsnOFIoM/?ref=app I have added one line to make tour code working
21st Oct 2020, 4:37 PM
Bilbo Baggins
Bilbo Baggins - avatar
+ 7
Always include your code snippet along with question like these so that community can have a better view of where you are.
21st Oct 2020, 3:57 PM
Arsenic
Arsenic - avatar
+ 3
Thank you Bilbo Baggins. Might you probably know how I could solve the problem outside of Sololearn? If not, you still have helped me a lot
21st Oct 2020, 4:45 PM
Leuck Chris
Leuck Chris - avatar
+ 3
I repeat: I added one line to make your code working. Find the line and try to understand why I added it. If you cannot understand, use print() everywhere!
21st Oct 2020, 6:20 PM
Bilbo Baggins
Bilbo Baggins - avatar
+ 3
Ohh, I didn't saw the line before. I understand now what you have changed. Thank you Bilbo Baggins
21st Oct 2020, 6:27 PM
Leuck Chris
Leuck Chris - avatar
+ 1
Ok, I put the link in the description.
21st Oct 2020, 4:00 PM
Leuck Chris
Leuck Chris - avatar