Skip to content

Instantly share code, notes, and snippets.

@Raj39120
Created April 30, 2020 13:40
Show Gist options
  • Save Raj39120/970efe0d00192bac903bff4c0f6611a1 to your computer and use it in GitHub Desktop.
Save Raj39120/970efe0d00192bac903bff4c0f6611a1 to your computer and use it in GitHub Desktop.
user_list = input("Enter your list of numbers here (separate each with a comma e.g. 1, 2, 3, 4, 5, 6): ")
y = input("Enter a number here and the program will print all of the numbers in your list less than this number: ")
def check():
if x < y:
print(x),
for x in user_list:
check()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment