English

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

Advertisements
Advertisements

Question

Write one example of the following in Python:

Implicit Type Conversion

Very Short Answer
Advertisements

Solution

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
  Is there an error in this question or solution?
2024-2025 (March) Set 4

APPEARS IN

Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×