in which format the input function read the user input?
String
Object
Boolean
Integer
Array
Share
in which format the input function read the user input?
String
Object
Boolean
Integer
Array
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Explanation:
The input is in the form of object
Answer:
String
Explanation:
The input function converts all information that it receives into the string format as shown in below example for reference
Eg:
name = input('Enter Your name:')
age = input('Enter your age:')
print('DataType_name: ', type(name))
print('DataType_age: ', type(age))
Output:
Enter Your name:Chandra Shekhar
Enter your age:27
DataType_name: <class 'str'>
DataType_age: <class 'str'>