Skip to content

Commit 098fb09

Browse files
committed
Python advance Tops exploring
1 parent 1abbff8 commit 098fb09

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
x = [1,2,3,4,5,6,7,8,9]
2+
obj1 = [y for y in x if y % 2==0]
3+
obj2 = [y for y in x if y % 2==1]
4+
print("Even Numbers: ", obj1, "\nOdd Numbers: ",obj2)
5+
6+
doc = print.__doc__
7+
print(doc)

0 commit comments

Comments
 (0)