Instead of offering large chunks of code, present little snippets with the interpreter error and ask for help deciphering the error. People will attempt to allow you to understand what you are reading extra. All your return statements must need to be decreased a degree of indentation. You can format code in the editor window.
I assume the teacher should have clarified the entire tutorial higher. It doesn’t work because amazeful seo of the “of” typo within the conditional. I assume incorporating the ‘print’ function could be useful req.
It’s a helpful talent to have. You want a colon at the end of the else statement. You try to examine answer to a perform no() quite than a string ‘no’. Your second conditional assertion must be an elsif not an else statement. Your first if statement tries to check reply to a variable yes not a string ‘yes’.
Cutting/pasting may change the indentation of the strains, which is ready to cause Python to boost an error. I am having problems with indentation i didnt put in. Eg it will inform me the indent on the elif statemnet is wrong despite the fact that it was there already. I’m misplaced on ‘The Big If’ part for Python…Trying to get everything to be ‘true’ but I can’t make sense of what exactly it’s looking for. Can someone present some general examples of what may work?
Thank you,I’ve solved this downside too. But then what ought to I do once I need to change another line to write new codes similar to return or elif. I was questioning why this code was incorrect. The console says that there’s invalid syntax in line 3 and the “supportive” box is telling me to check my colons. I checked it and it nonetheless offers me the same response. Rather than cutting/pasting, try typing the code out with exactly the same formatting as shown.