QUESTION IMAGE
Question
if you do not specify what kind of variable you are creating during an input, in python the default is what kind of variable?
a. string
b. decimal
c. integer
d. argument
Brief Explanations
In Python, when using the input() function to get user input, the data type of the input received is by default a string. Even if the user enters a number (like an integer or a decimal), it is treated as a string unless explicitly converted to another data type (e.g., using int() or float() for conversion). So the default variable type for input in Python is a string.
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
A. string