0
Please help me with my code. I do not know why it is not working.
Can someone please help. What's wrong with my code? password = "bots are awesome" ipt = input("enter password:") if ipt == password: print("you got accses to programing website:" + "code.org") else: print("hacker! hacker! hacker! call the police!") I can not get the input part to work.
5 Answers
+ 4
Oddly enough, the code does work although you said it doesn't. The app doesn't process the code like a Python interpreter normally would. Like you have to input everything that you need for your program before it prompts you. So in solo learn, no need to add indications of prompts just place comments.
+ 3
What is the error?
+ 1
nothing wrong but u need to give input in order for ur program to return any output đ
0
nothing is wrong with your code how can you possibly get an error
0
Dan, in most python IDEs, you should change it to
password = "bots are awesome"
ipt = raw_input("enter password:")
if ipt == password:
print("you got accses to programing website:" + "code.org")
else:
print("hacker! hacker! hacker! call the police!")