From b41c08ef9a493e537669ece32d95e4b1fd1a9c36 Mon Sep 17 00:00:00 2001 From: sandynigs Date: Tue, 1 Aug 2017 13:21:55 +0530 Subject: [PATCH] "pytho3 code and user can give input now " --- Print_List_of_Even_Numbers.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Print_List_of_Even_Numbers.py b/Print_List_of_Even_Numbers.py index 3e1c3369577..5c34ce48c4a 100644 --- a/Print_List_of_Even_Numbers.py +++ b/Print_List_of_Even_Numbers.py @@ -1,2 +1,4 @@ -print [x for x in range(2, 100) if not x % 2] -print range(2, 100, 2) +#user can give in put now +#pyhton3 + +print ([x for x in range(int(input()),int(input())) if not x%2])