Casting in Python

Casting or Conversion is changing the data types of any variable from one type to another. Example:– int to float We can explicitly convert based on requirement. Casting in Python is therefore done using constructor functions: int():- Constructs an integer number from an integer literal a float literal (by rounding down to the previous whole number) or a string literal (providing the string represent a … Continue reading Casting in Python

Data Types in Python

Data types are the classification or categorization of data items. It represents the kind of value that tells what operations can be performed on a particular data. Since everything is an object in python programming, data types are actually classes and variable are instance (object) of these classes.
Following are the standard or built-in data type of Python: Continue reading Data Types in Python