Advertisements
Advertisements
प्रश्न
Write one example of the following in Python:
Implicit Type Conversion
अति संक्षिप्त उत्तर
Advertisements
उत्तर
a=50
b=9.95
b=a
Here, the integer value of a is assigned to the variable b, which is of float type. Python automatically converts the integer value into a float. This automatic conversion is called implicit type conversion.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2024-2025 (March) Set 4
