Help, I am stuck!
No worries! See if any of the following helps you, if not, feel free to reach out to one of us, and we will help you.
Indentation is very important when you are working in Python. Be careful of spaces & tabs in your code, because indentation errors can sometimes be pretty difficult to spot.
However on the positive side, strict formatting makes Python code very clean and organized. Are all your variables, functions indented properly as instructed?
SyntaxError: invalid syntax Verify your keywords are spelled correctly and that you are following the structure defined.
IndentationError: unexpected indent If you see this, check your indentions.
NameError: global name '---' is not defined Variables that are defined within a function can only be used within the function. If you try to use a variable from one function in another function, you will receive this error.
To make information available to other functions you pass it out of one function with the
returnstatement, possibly assigning it to a variable. Then you pass it into another function using a parameter. See the functions tutorial link in my signature for a detailed explanation.
Cannot recognize error: spelling mistake? You usually receive this when you make a spelling mistake in your keywords. Check all of your keywords.
TypeError: Can’t convert ‘int’ object to str implicitly Check to make sure you are not trying to use an integer in string actions (You can not string concatentate a string and an integer. You must convert the integer to a string first).
You did it!