Forumchem - Forum with AI(ALICE BOT & HAL9000) and TTS

More dificult for us, more easy for you
It is currently Fri Apr 19, 2024 12:52 pm

All times are UTC





Post new topic Reply to topic  Page 1 of 1
 [ 1 post ] 
Author Message
 Post subject: Def spam(): eggs = 12 return eggs print sp
PostPosted: Sun Apr 04, 2021 12:55 am 
Offline
User avatar

Joined: Fri Oct 16, 2009 2:48 pm
Posts: 6
Def spam():
eggs = 12
return eggs print spam()
and when i click run
i got this error "IndentationError: expected an indented block"?

the only way to solve this problem is by typing space 2 times before eggs and return so it will look like this:
def spam():
eggs = 12
return eggs

print spam()
why does it need to be like this, why does it need 2 spaces to work?



Top
 Profile      
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  Page 1 of 1
 [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: vawceix and 7 guests


 
Search for:
 
Jump to:  

cron
Click me:
Powered by phpBB © 2000, 2002, 2005, 2007, 2008, 2009 phpBB Group
Chronicles phpBB3 theme by Jakob Persson. Stone textures by Patty Herford.
With special thanks to RuneVillage

This site have 4 type of tecnology in order to convert text to speech. By default you use the vozme tecnology. In order to know the other you need to sign for.


- Privacy Policy -