Skip to content

Commit 72574c1

Browse files
authored
Using Generator expression
1 parent d430420 commit 72574c1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎Print_List_of_Even_Numbers.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
for x in range(2,100,2):
2-
print(x)
1+
print(x for x in range(2,100,2))

0 commit comments

Comments
 (0)