QUESTION IMAGE
Question
1 multiple choice 1 point what is the type of the variable \u\ in the code snippet? x = 7 y = 1.2 u = x - y float complex str int
Step1: Analyze variable types
In Python, x = 7 makes x an integer (int), y = 1.2 makes y a float (float).
Step2: Perform operation and check result type
When subtracting a float from an int (u=x - y=7 - 1.2), the result is a float because of type coercion in arithmetic operations.
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
float