Skip to content

Instantly share code, notes, and snippets.

@BlogBlocks
Last active December 17, 2017 00:06
Show Gist options
  • Save BlogBlocks/768402bab6cf1e449f381881b926a3ef to your computer and use it in GitHub Desktop.
Save BlogBlocks/768402bab6cf1e449f381881b926a3ef to your computer and use it in GitHub Desktop.
multiple keywords
x = input("What programming language do you know ?")
keywords = ["Python", "JavaScript", "Ruby"]
if any(keyword in x for keyword in keywords):
print("I know that language also !")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment