Last answered:

14 Nov 2022

Posted on:

12 Nov 2022

0

It showing error messages on the Spyder Console

I did the same thing as Instructor said but for some reason I'm getting error message warning at the console. Can you suggest a solution to fix the problem? Thank you.image

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

14 Nov 2022

0

Hey Mohammad,

Thank you for reaching out!

The backslash following the character a in

caught a\

is used to indicate that we are carrying the string over on a new line. This is helpful whenever the string inside a print function becomes too long (please, see this thread). Therefore, you should either move the string on a new line (as in Giles' code), or remove the backslash after the character a, namely:
image.png

Hope this helps!

Kind regards,
365 Hristina

Submit an answer