Give the output of the following:
num1 = int(float('3.14')) print(num1)
3
The expression float('3.14') converts the string '3.14' to the floating-point number 3.14. The int() function then converts 3.14 to the integer 3 by truncating the decimal part. Thus, num1 is assigned the value 3, and print(num1) outputs 3.
float('3.14')
int()
num1
print(num1)