Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save akshayxarora/c9aa8080e60265c41e7e6ccbef7896ca to your computer and use it in GitHub Desktop.
Save akshayxarora/c9aa8080e60265c41e7e6ccbef7896ca to your computer and use it in GitHub Desktop.
C3
list = [1, 2, 3, 4, 5, 6, 7, 8, 10, 12, 13, 14 , 1, 2, 3, 5, 7]
num = int(raw_input("Enter the numbers to be dispalyed in the list))
new_list = []
for i in list:
if i < num :
new_list.append(i)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment