Created
October 27, 2016 17:43
-
-
Save zahidhasanemon/730d3fa05b1443eb7207a58454cb2323 to your computer and use it in GitHub Desktop.
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
| a = [1,10,5,6,7,3,2,8,88,20] | |
| b=[] | |
| user = int(raw_input("enter a number to compare: ")) | |
| for num in a: | |
| if num >= user: | |
| b.append(num) | |
| print b |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment