Which value type does input ( ) function returns(a) Boolean (b) string (c) integer (d) float
Answers
The input() method reads a line from input, converts into a string and returns it.
Answer: Answer: (b) string. The other options (a) boolean, (c) integer and (d) float are incorrect because input() always returns a string.
Explanation:
Python's input function is used to receive user input from the keyboard. This function always returns a string value, no matter what input is given. The value type returned by the Input() function is always a string. The input() function has the below mentioned syntax:
input ([prompt])
where prompt is optional parameter that is a string to print to the screen. The input() function waits for the user to enter some input and press the enter key. The function then returns the string value entered by the user. If the user writes input: Hello
The Input() function returns "hello"
So we can say that the input() function always returns a string value.
To know more about syntax
https://brainly.in/question/49947827
https://brainly.in/question/47863690
#SPJ3