-6

I added an 'if else statement' but I don't know why the program is not running!! Can you please help me fix this. I'm a total beginner and this is the 1st time I'm a Python Code

enter image description here

Barmar
  • 741,623
  • 53
  • 500
  • 612
  • 3
    Take a look at [ask]. – pvg Sep 08 '17 at 21:05
  • 2
    Looks like your indentation is messed up. [This](https://stackoverflow.com/questions/45621722/im-getting-an-indentationerror-how-do-i-fix-it) may be of use. – Christian Dean Sep 08 '17 at 21:06
  • 1
    Please don't post code in screenshots. They can't be searched or copied and offer poor usability. Instead, paste the code as text directly into your question. If you select it and click the `{}` button or Ctrl+K the code block will be indented by four spaces, which will cause it to be rendered as code. – ChrisGPT was on strike Sep 08 '17 at 21:23

1 Answers1

0

Indentation is important in Python. Remove the first space in the first line, and indent the code after else:, on line 8 and 10.

Eric Duminil
  • 52,989
  • 9
  • 71
  • 124
  • Thnx a lot !! Really. I didn't know this. And yesterday night I reviewed the code, again and again, searched on the web but didn't get the result. But this comment made my day. Really Thank You, Eric!! – Soumik Roy Sep 09 '17 at 13:43