Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8f97058

Browse files
Create MultiplesInRandomList.py
1 parent de13fa7 commit 8f97058

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

‎MultiplesInRandomList.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import random
2+
3+
4+
def main():
5+
random_list = list(random.randint(1, 1001) for i in range(100))
6+
print(list(filter((lambda x: x % 9 == 0), random_list)))
7+
8+
9+
main()

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /