From 4bef1b054c2511fdc2014490b10affe31336093e Mon Sep 17 00:00:00 2001 From: AdityA Date: Mon, 12 Sep 2022 20:50:48 +0530 Subject: [PATCH] Added Typecasting --- samples/basic/do_input.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/samples/basic/do_input.py b/samples/basic/do_input.py index 783523a1..3490506d 100755 --- a/samples/basic/do_input.py +++ b/samples/basic/do_input.py @@ -3,3 +3,9 @@ name = input() print('Hello,', name) + + +# To convert the Input String into a specific Data Type + +number = int(input()) +print('ID No. ', number)