Last active
December 17, 2017 00:06
-
-
Save BlogBlocks/768402bab6cf1e449f381881b926a3ef to your computer and use it in GitHub Desktop.
multiple keywords
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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