Python if statements [on hold]
up vote
-4
down vote
favorite
I am trying to write some code in python where you enter a password. If you enter the correct password then it will display success and will close after 5 seconds. However, I keep getting syntax errors.
inputed_password = str(input("Enter password"))
correct_password = ("password123")
if inputed_password is correct_password:
print("Correct")
else print("incorrect")
import time
time.sleep(5)
python python-3.x
New contributor
put on hold as off-topic by Graipher, πάντα ῥεῖ, 200_success, alecxe, t3chb0t yesterday
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – Graipher, πάντα ῥεῖ, 200_success, alecxe, t3chb0t
If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
up vote
-4
down vote
favorite
I am trying to write some code in python where you enter a password. If you enter the correct password then it will display success and will close after 5 seconds. However, I keep getting syntax errors.
inputed_password = str(input("Enter password"))
correct_password = ("password123")
if inputed_password is correct_password:
print("Correct")
else print("incorrect")
import time
time.sleep(5)
python python-3.x
New contributor
put on hold as off-topic by Graipher, πάντα ῥεῖ, 200_success, alecxe, t3chb0t yesterday
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – Graipher, πάντα ῥεῖ, 200_success, alecxe, t3chb0t
If this question can be reworded to fit the rules in the help center, please edit the question.
Hey, welcome to Code Review! This question does not match what this site is about. Code Review is about improving existing, working code. Code Review is not the site to ask for help in fixing or changing what your code does. Once the code does what you want, we would love to help you do the same thing in a cleaner way! Please see our help center for more information.
– Graipher
yesterday
add a comment |
up vote
-4
down vote
favorite
up vote
-4
down vote
favorite
I am trying to write some code in python where you enter a password. If you enter the correct password then it will display success and will close after 5 seconds. However, I keep getting syntax errors.
inputed_password = str(input("Enter password"))
correct_password = ("password123")
if inputed_password is correct_password:
print("Correct")
else print("incorrect")
import time
time.sleep(5)
python python-3.x
New contributor
I am trying to write some code in python where you enter a password. If you enter the correct password then it will display success and will close after 5 seconds. However, I keep getting syntax errors.
inputed_password = str(input("Enter password"))
correct_password = ("password123")
if inputed_password is correct_password:
print("Correct")
else print("incorrect")
import time
time.sleep(5)
python python-3.x
python python-3.x
New contributor
New contributor
edited yesterday
Graham
527113
527113
New contributor
asked yesterday
F.Ahmed
11
11
New contributor
New contributor
put on hold as off-topic by Graipher, πάντα ῥεῖ, 200_success, alecxe, t3chb0t yesterday
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – Graipher, πάντα ῥεῖ, 200_success, alecxe, t3chb0t
If this question can be reworded to fit the rules in the help center, please edit the question.
put on hold as off-topic by Graipher, πάντα ῥεῖ, 200_success, alecxe, t3chb0t yesterday
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – Graipher, πάντα ῥεῖ, 200_success, alecxe, t3chb0t
If this question can be reworded to fit the rules in the help center, please edit the question.
Hey, welcome to Code Review! This question does not match what this site is about. Code Review is about improving existing, working code. Code Review is not the site to ask for help in fixing or changing what your code does. Once the code does what you want, we would love to help you do the same thing in a cleaner way! Please see our help center for more information.
– Graipher
yesterday
add a comment |
Hey, welcome to Code Review! This question does not match what this site is about. Code Review is about improving existing, working code. Code Review is not the site to ask for help in fixing or changing what your code does. Once the code does what you want, we would love to help you do the same thing in a cleaner way! Please see our help center for more information.
– Graipher
yesterday
Hey, welcome to Code Review! This question does not match what this site is about. Code Review is about improving existing, working code. Code Review is not the site to ask for help in fixing or changing what your code does. Once the code does what you want, we would love to help you do the same thing in a cleaner way! Please see our help center for more information.
– Graipher
yesterday
Hey, welcome to Code Review! This question does not match what this site is about. Code Review is about improving existing, working code. Code Review is not the site to ask for help in fixing or changing what your code does. Once the code does what you want, we would love to help you do the same thing in a cleaner way! Please see our help center for more information.
– Graipher
yesterday
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Hey, welcome to Code Review! This question does not match what this site is about. Code Review is about improving existing, working code. Code Review is not the site to ask for help in fixing or changing what your code does. Once the code does what you want, we would love to help you do the same thing in a cleaner way! Please see our help center for more information.
– Graipher
yesterday