Ask coding questions

← Back to all posts
I need help with this. I want to see if the value is what the user types
Flyingcrabs (7)

I need help with this. I want to see if the value is what the user types

Comments
hotnewtop
Whacko (320)
data = input("Enter yes or no: ")
if data === "yes":
  print("You entered yes!")
elif data === "no":
  print("You entered no!")
Flyingcrabs (7)

nooo database way more then if else
@Whacko

Flyingcrabs (7)

so i have a list of keys. I want to find a one key that is the users input @Whacko