Advertisements
Advertisements
प्रश्न
Give the output of the following when num1 = 4, num2 = 3, num3 = 2.
print(4.00 / (2.0 + 2.0))
टिप्पणी लिखिए
Advertisements
उत्तर
print(4.00 / (2.0 + 2.0))
The numbers written in the statement are in float data type therefore, the output will be also in float data type.
print(4.00 / (2.0 + 2.0))
print(4.0 / 4.0)
1.0
Therefore, the output will be 1.0.
shaalaa.com
Python Data Types
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
