Skip to content

Instantly share code, notes, and snippets.

@jmcph4
Created July 16, 2023 09:45
Show Gist options
  • Select an option

  • Save jmcph4/bfdb7c6e41257f4e631a46b76c7fcbb3 to your computer and use it in GitHub Desktop.

Select an option

Save jmcph4/bfdb7c6e41257f4e631a46b76c7fcbb3 to your computer and use it in GitHub Desktop.
#!/bin/python3
from sys import argv
N = 5
def f(xs):
return list(filter(lambda x: x < N, xs))
def main():
if len(argv) <= 1:
exit(1)
numbers = [int(x) for x in argv[1:]]
result = f(numbers)
print(result)
if __name__ == "__main__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment