Skip to content

Instantly share code, notes, and snippets.

@nattybear
Last active March 3, 2021 13:37
Show Gist options
  • Save nattybear/7a761d915d253546ee053c6b7e6899d9 to your computer and use it in GitHub Desktop.
Save nattybear/7a761d915d253546ee053c6b7e6899d9 to your computer and use it in GitHub Desktop.
char = input()
languages = ["c", "c++", "java", "python", "c#", "javascript"]
xs = filter(lambda x: char in x, languages)
for x in xs: print(x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment