+ 1

can any one explain the use of this input function

21st Aug 2016, 3:33 PM
peela bhaskar nihaal
2 Answers
+ 2
input function is used to take any string input from the user.... syntax :- var_name = input("Enter your string :") example :- name_1 = input("Enter your name :") print(name_1) input : Enter your name : rahul output : rahul
21st Aug 2016, 6:19 PM
Rahul Gautam
Rahul Gautam - avatar
+ 2
this is to get the input from user in string format. then accordingly, we need to convert data from string type.
21st Aug 2016, 6:19 PM
Amit Gupta
Amit Gupta - avatar