From f14ebd524c7cae329dfc296b797c8b516d73272a Mon Sep 17 00:00:00 2001 From: LaraibWaheed Date: Fri, 5 Aug 2022 15:57:45 +0500 Subject: [PATCH] User input practice --- src/user_input/test_input.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/user_input/test_input.py b/src/user_input/test_input.py index 0acbbf76..64ae43b7 100644 --- a/src/user_input/test_input.py +++ b/src/user_input/test_input.py @@ -15,3 +15,9 @@ def user_input(): # Printing a message based on the input. print(f"Welcome, {user_input}!") + + user_input = input("Please enter the list comma seperated\n") + + lst= [int(i) for i in user_input.split(',')] + + print(lst)