IT45200

Untitled

Dec 4th, 2019
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. languages = ['Python', 'C++','Java','C#','Perl']
  2. w = input("Enter a word : ")
  3. def Word(x):
  4.     return print([False, True] [x in languages])
  5.  
  6. Word(w)
Advertisement
Add Comment
Please, Sign In to add comment