Created
March 28, 2017 20:20
-
-
Save akshayxarora/c9aa8080e60265c41e7e6ccbef7896ca to your computer and use it in GitHub Desktop.
C3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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