Skip to content

Instantly share code, notes, and snippets.

@zahidhasanemon
Created October 27, 2016 17:43
Show Gist options
  • Select an option

  • Save zahidhasanemon/730d3fa05b1443eb7207a58454cb2323 to your computer and use it in GitHub Desktop.

Select an option

Save zahidhasanemon/730d3fa05b1443eb7207a58454cb2323 to your computer and use it in GitHub Desktop.
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