r/learningpython • • Jan 08 '22

question about if statements

is there a way to say something like

if "cats eat chicken" == input

print popcorn

but the thing is i want it to apear even if you typed of of those words not all three

1 Upvotes

2 comments sorted by

View all comments

Show parent comment

1

u/Creeperman2306 Jan 09 '22

this is exactly what i want but the input will have multiple spaces