Skip to content

Commit a89f688

Browse files
Merge pull request geekcomputers#213 from sandynigs/master
"python3 code and user can give input now "
2 parents 36ce63a + b41c08e commit a89f688

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Print_List_of_Even_Numbers.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
print [x for x in range(2, 100) if not x % 2]
2-
print range(2, 100, 2)
1+
#user can give in put now
2+
#pyhton3
3+
4+
print ([x for x in range(int(input()),int(input())) if not x%2])

0 commit comments

Comments
 (0)