The input() function by default returns the value as _____ data type
Answers
Answered by
10
Answer:
The input() function by default returns the value as string data type
Hope this helps you. Plz mark me as the brainliest
Answered by
0
Concept:
In Python, the user's input is read and returned as a string using the input( ) method.
Explanation:
In Python, we implement the input() function to get user input. The input function translates whatever you give it as input into a string. Even if an integer value is entered, the input() method accepts it as a string.
Syntax: input(prompt)
Parameter:
Prompt: (optional) The string to write to standard output (typically the screen) without a newline.
By default, it returns a string object.
Hence, the input() function by default returns the value as string data type.
Similar questions