FirstGame

I need help.

https://repl.it/join/vuwmffvb-zzoltang

On line 32 I am trying to make it so that depending on your special power - there will be a different outcome. I am not sure how to do this as I am getting a syntax error. :sob:

It looks like power is supposed to be assigned a string, either "invisibility" or "strength". However, on lines 32 and 35, you’re comparing power to invisibility or strength (without the quotes). This means you are comparing power to a non-existent variable. Make sure to surround any strings you use with quotation marks.

3 Likes

In addition to what @dr_victoria pointed out,

Your if statements on lines 27 and 31 are based on the value of the variable ans though your last question was not saved to this variable.

3 Likes

Thank you so much! :smiley_cat:

2 Likes