Articles → PYTHON → Casting In Python

Casting In Python

What Is Casting?


  1. Declare a variable with integer data type and assign a value.
  2. Declare a variable with a float value and assign a value.
  3. Cast integer value to float and print.
  4. Case float value to integer and print.

Picture showing the output of casting in python

Posted By  -  Karan Gupta
Posted On  -  Tuesday, February 19, 2019


Your Email Id  
Query/FeedbackCharacters remaining 250