What will be the value and its type for the given expression: 3.25 +4?
Python > Fundamentals of Python > Important Points about Python
257
Answer:
>>> result = 3.25 +4
>>> print (result, 'is', type (result)) 7.25 is <class 'float'>
Its type is a float as integers are automatically converted into floats as necessary.
This Particular section is dedicated to Question & Answer only. If you want learn more about Python. Then you can visit below links to get more depth on this subject.
Join Our telegram group to ask Questions
Click below button to join our groups.