I get an error after i put in an input, how can i fix it?
print('Type ROLL to roll for your stats')
roll = input()
if roll == ROLL:
# ...
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should have been more elaborate on the error. Anyway seeing your code, the indentation error is obvious. The
ifstatement should not be indented but must be at the same level w.r.t the previous statement. Another error is that, in the comparison the string should be quoted like'ROLL'