Here is the code:
delete=["del","delete","unistall","delall"]
action=(input("Please Select An Action To Do: "))
if action in delete:
print("Ok,I will Delete whatever you wish")
Can I make it detect if one sentence contains any of the delete keywords,so make it do the action? e.x. :UserInput="delete menu",can it detect the delete keyword and do the right action?
Edit:Thanks for helping me out , the answer was to replace the if line with :
if any(word in action for word in delete):