Share your repls and programming experiences

← Back to all posts
I need help with this, i keep getting errors maybe someone could help?
ErelDomingo (4)

Maybe someone could help? i keep getting error's with my code

Comments
hotnewtop
CodeMaster007 (109)

Hey! Your error is that you didn't finish your program. What you need to do is finish the elif selection. Basically all you have to do is do a "return" on your keyboard and type anything. It can literally be
print("Hello World!")
and watch.... your program will run!

ErelDomingo (4)

Hello, sorry i'm confused what do you mean by i need to do a return? @CodeMaster007

CodeMaster007 (109)

Ok. I fixed the code for you. All you have to do is copy and paste the code from the page below (its your fixed code) or you can just fork it. Thanks, @ErelDomingo

CodeMaster007

ErelDomingo (4)

I'm so sorry, i'm new to this site. may I know where can I copy the code @CodeMaster007

CodeMaster007 (109)

Ok. So just go to the end of your program and under "elif selection == '4':", you type print("Hello World"). The program will then run. @ErelDomingo

ErelDomingo (4)

I'm so sorry to disturb you but IndentationError: expected an indented block

KeyboardInterrupt this was the error after posting the print hello world
@CodeMaster007

CodeMaster007 (109)

Ok. Click the tab button on your physical keyboard 3 times. @ErelDomingo

CodeMaster007 (109)

Do this before the word "print" @CodeMaster007

CodeMaster007 (109)

Oh. Also type it like this... @ErelDomingo

print("Hello World")

No spaces in between print and the ()

ErelDomingo (4)

I'm really sorry I'm new to Python, the code works now thank you so much for your help!! you made my day @CodeMaster007