मराठी

Write one example of the following in Python: Implicit Type Conversion - Computer Science (Python)

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

APPEARS IN

Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×