Last answered:

09 Nov 2022

Posted on:

09 Nov 2022

0

Problem of my code

code: print('one, \'two\',\"three\",four\\five\\n\t once, \'I\' caught a fish\n\t\t\'//alive\\\' ')

I don't know what the problem is but the very last character ' gives an error. If I remove just one ' from the last the code runs but the result doesn't match with the right answer. I hope that you will fix the code and explain it to me.

1 answers ( 0 marked as helpful)
Instructor
Posted on:

09 Nov 2022

0

Hey,

Thank you for reaching out and engaging with the Python Programmer Bootcamp course!

I've copy-pasted the code you provide and it runs without any problem. Could you please share a screenshot of the error you are getting?

Kind regards,
365 Hristina

Submit an answer