Oct-18-2018, 01:47 AM
Please use python tags when posting code. See the BBCode link in my signature below for instructions.
First you need to fix your syntax and indentation errors. The if and else statements should all be at the same indentation level as the first input. There is no "else if" in Python, it is "elif". And you can't use break outside of a loop.
Next, if they are entering a character, why are converting it to an int? And note the missing close parentheses at the end of that line. Also, you store the value in n, but you are checking against int (a built-in function).
First you need to fix your syntax and indentation errors. The if and else statements should all be at the same indentation level as the first input. There is no "else if" in Python, it is "elif". And you can't use break outside of a loop.
Next, if they are entering a character, why are converting it to an int? And note the missing close parentheses at the end of that line. Also, you store the value in n, but you are checking against int (a built-in function).
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures