+ 1
can any one explain the use of this input function
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
+ 2
this is to get the input from user in string format.
then accordingly, we need to convert data from string type.