Error expected an idented block

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Aviador22
    New Member
    • Jun 2014
    • 2

    Error expected an idented block

    Resulta que cuando pongo este código:
    Code:
    >>> edad = 12
    >>> if edad == 12:
    ... print ('Hola')
    File "(stdin)", line 2
    prin[B]t[/B]('Hola')
    IdentationError: expected an indented block
    Help :(
    Last edited by bvdet; Jun 4 '14, 02:57 PM. Reason: Add code tags
  • bvdet
    Recognized Expert Specialist
    • Oct 2006
    • 2851

    #2
    Add at least one space character before the print statement. As entered, there is no indentation.

    Comment

    • Aviador22
      New Member
      • Jun 2014
      • 2

      #3
      I've already added but nothing happens I still appearing the same:(

      Comment

      • bvdet
        Recognized Expert Specialist
        • Oct 2006
        • 2851

        #4
        Mouse over the image to see my Python command prompt example.

        Comment

        Working...