python if statement
usrinput = input(">> ")
if usrinput == "Hello":
print("Hi")
elif usrinput == "Bye":
print("Bye")
else:
print("Okay...?")
python if statement
usrinput = input(">> ")
if usrinput == "Hello":
print("Hi")
elif usrinput == "Bye":
print("Bye")
else:
print("Okay...?")
if statement in python
answer = input(":")
if answer == "lol":
print("haha")
else:
print("not haha")
exit()
please note that the exit() command is optional and is not necessary.
python if and
if foo == 'abc' and bar == 'bac' or zoo == '123':
# do something
python if statement
if (condition1):
print('condition1 is True')
elif (condition2):
print('condition2 is True')
else:
print('None of the conditions are True')
or in if statement python
weather == "Good!" or weather == "Great!":
# Or the following
weather in ("Good!", "Great!"):
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us