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

Error expected an idented block

P: 2
Resulta que cuando pongo este código:
Expand|Select|Wrap|Line Numbers
  1. >>> edad = 12
  2. >>> if edad == 12:
  3. ... print ('Hola')
  4. File "(stdin)", line 2
  5. print('Hola')
  6. IdentationError: expected an indented block
Help :(
Jun 4 '14 #1
Share this Question
Share on Google+
3 Replies


bvdet
Expert Mod 2.5K+
P: 2,851
Add at least one space character before the print statement. As entered, there is no indentation.
Jun 4 '14 #2

P: 2
I've already added but nothing happens I still appearing the same:(
Jun 4 '14 #3

bvdet
Expert Mod 2.5K+
P: 2,851
Mouse over the image to see my Python command prompt example.

Jun 4 '14 #4

Post your reply

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