Iam Getting an Error as : Expected an indented block

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gearedhead
    New Member
    • Aug 2014
    • 1

    Iam Getting an Error as : Expected an indented block

    Code:
    name = input('What is your name?\n')
    print('Hi, %s.' % name)
    work = input('What do u do For Living?\n')
    print('Oh thats Great')
    hobby = input("What is ur Hobby?\n")
    if hobby == 'work':
    print ("But thats ur Work..!!")
    Last edited by Rabbit; Aug 24 '14, 12:10 AM. Reason: Please use [code] and [/code] tags when posting code or formatted data.
  • dwblas
    Recognized Expert Contributor
    • May 2008
    • 626

    #2
    Which line is in the error message? See "if" statement on this link

    Comment

    Working...