QUESTION IMAGE
Question
what is the output of the following code?
x = 10
y = 2.5
print(x * y)
25
25.0
12.5
error
Step1: Substitute values
Substitute \(x = 10\) and \(y=2.5\) into \(x*y\).
\(10*2.5\)
Step2: Calculate the product
\(10*2.5 = 25.0\) (In Python, when an integer is multiplied by a float, the result is a float).
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
25.0