Course Content
Variables, Data types
Python is a versatile programming language known for its simplicity and readability. One of the foundational concepts in Python is the use of variables and data types. This blog post will guide you through the basics of variables, different data types, and how to perform type casting in Python.
0/2
Type Casting in Python
Type casting refers to the conversion of one data type to another. In Python, you can cast variables from one type to another using built-in functions. Integer to Float: x = 10 y = float(x) print(y) # Output: 10.0
0/1
Python Programming For Beginners

Type casting refers to the conversion of one data type to another. In Python, you can cast variables from one type to another using built-in functions.

Integer to Float:

x = 10
y = float(x)
print(y) # Output: 10.0