Robotics & Artificial Intelligence

Predict the output and type of casting for the given Python expressions:

Python ExpressionExplicit/Implicit
m = 32.005, n = 45
print(int(m+n))
a = 42.85, b = 12.45
print(a+b)

Python Funda

1 Like

Answer

Python ExpressionOutputExplicit/Implicit
m = 32.005, n = 45
print(int(m+n))
77Explicit
a = 42.85, b = 12.45
print(a+b)
55.30Implicit

Answered By

2 Likes


Related Questions