IndentationError: expected an indented block

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bekim

    IndentationError: expected an indented block

    C:\Users\Bekim> C:\Users\Bekim\ Desktop\ass1.py
    File "C:\Users\Bekim \Desktop\ass1.p y", line 14
    print("invalid Input")
    ^
    IndentationErro r: expected an indented block

    something wrong with this code

    print("invalid Input")
    ^

    but i really dont know whats wrong with it can you please anyone help me
  • bvdet
    Recognized Expert Specialist
    • Oct 2006
    • 2851

    #2
    It's the line preceding line 14 that is causing the problem, or you did not indent line 14. It would help us help you if you would post the code.

    Comment

    Working...