Skip to content

Instantly share code, notes, and snippets.

@songmw90
Created July 19, 2016 02:10
Show Gist options
  • Select an option

  • Save songmw90/8def1f9ff5c64d6bc7276e05ac1a0c64 to your computer and use it in GitHub Desktop.

Select an option

Save songmw90/8def1f9ff5c64d6bc7276e05ac1a0c64 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
# -*- coding: utf8 -*-
import random
def solve(i):
#int 100보다 작은 수를 제거
return [a for a in i if a >= 100]
lst = []
for i in range(100):
lst.append(random.randint(1,1000))
print "original"
print lst
print "sovle"
print solve(lst)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment