Typecasting in Python
- Metric Coders
- Apr 9, 2023
- 1 min read
Updated: Apr 19, 2023
The data type of a variable can be changed to another using the corresponding datatype.

a = int(2)
b = str(a)
print(a)
print("A"+b)
The link to the Github repository is here .