Skip to main content

Command Palette

Search for a command to run...

Typecasting in Python

Published
•1 min read•View as Markdown
Typecasting in Python
B

I'm Proficient in a variety of Big Data technologies, including AWS, Azure, GCP, Hadoop, Databricks, Pyspark, Sql, Python, Docker, Jenkins, Git/GitHub, Kubernetes, Azure Data Engineering.

The conversion of one data type to another data type is known as type casting.

Python supports a wide variety of function or methods like int(), float(), str(), hex() etc

Two types of typecasting -

  1. Explicit conversion

  2. Implicit conversion

Explicit typecasting

The conversion of one data type to another data type, done via programmer as per the requirement is known as explicit typecasting.

Implicit typecasting

In Python, when the data type conversion takes place during compilation or during the run time, then it is known as implicit typecasting.

More from this blog

Untitled Publication

37 posts