By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,984 Members | 1,009 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,984 IT Pros & Developers. It's quick & easy.

Iam Getting an Error as : Expected an indented block

P: 1
Expand|Select|Wrap|Line Numbers
  1. name = input('What is your name?\n')
  2. print('Hi, %s.' % name)
  3. work = input('What do u do For Living?\n')
  4. print('Oh thats Great')
  5. hobby = input("What is ur Hobby?\n")
  6. if hobby == 'work':
  7. print ("But thats ur Work..!!")
Aug 23 '14 #1
Share this Question
Share on Google+
1 Reply


Expert 100+
P: 614
Which line is in the error message? See "if" statement on this link
Aug 23 '14 #2

Post your reply

Sign in to post your reply or Sign up for a free account.