+ 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
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
+ 7
Always include your code snippet along with question like these so that community can have a better view of where you are.
+ 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
+ 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!
+ 3
Ohh, I didn't saw the line before. I understand now what you have changed. Thank you Bilbo Baggins
+ 1
Ok, I put the link in the description.