Created
July 19, 2016 02:10
-
-
Save songmw90/8def1f9ff5c64d6bc7276e05ac1a0c64 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
| #!/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