Skip to content

video not played or not found error
click on direct switch

Hosted by Dailymotion. For legal issues: Copyright Center · DMC · Instant Removal

Lecture 29: Type Conversion in Python

N
Nafees AI Lab

12 Views • May 15, 2025

Description

Data type conversion, also known as type casting, refers to the process of changing a value from one data type to another. In Python, this can be done implicitly or explicitly.
Python automatically converts a value from one data type to another in certain situations, often to avoid errors or loss of information. This is called implicit conversion or type coercion. For example, when adding an integer and a float, Python will implicitly convert the integer to a float before performing the addition.