QUESTION IMAGE
Question
what does the input() function return in python?
integer
float
string
boolean
question 2
1 pts
which function converts a string to an integer?
str()
int()
float()
bool()
Brief Explanations
In Python, the input() function reads user input as a string. For the second question, the int() function is used to convert a string (that represents an integer) to an actual integer. The str() function is for converting to a string, float() for converting to a float, and bool() for converting to a boolean.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
First question: String. Second question: int().