Informatics Practices
Give the output of the following when num1 = 4, num2 = 3, num3 = 2.
num1 = float(10)
print(num1)
Python Control Flow
1 Like
Answer
10.0
Working
The float(10) function converts the integer 10 to the floating-point number 10.0. Therefore, num1 is assigned the value 10.0.
Answered By
2 Likes
Related Questions
Give the output of the following when num1 = 4, num2 = 3, num3 = 2.
print(4.00 / (2.0+2.0))Give the output of the following when num1 = 4, num2 = 3, num3 = 2.
num1 = 2 + 9 * ((3*12)-8)/10 print(num1)Give the output of the following when num1 = 4, num2 = 3, num3 = 2.
num1 = int('3.14') print(num1)Give the output of the following:
print (10 != 9 and 20 >= 20)