Articles → PYTHON → Casting In Python

Casting In Python






What Is Casting?





Example




  1. Declare a variable with integer data type and assign a value.
  2. Declare a variable with 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

Click to Enlarge


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

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250