Getting type of class or data or object by using type() and converting data types in Python Basics

preview_player
Показать описание
5:50 string data types
6:40 User defined class data type
8:28 Converting one data type to other

These are Python built in data types
None
Numeric ( integer, float , complex )
Sequence ( list, tuple, set , range )
Bool
string ( or str )
dictionary.
List, tuple ,set ,range are sequential data types

We can convert one data type to other by using various functions like int() , str() , complex() , float() etc

We can’t convert all types of data to any data type.

Full source code is here.

At Github download or open the source in colab

#DataTypes #PythonDataTypes #type() #integer #string #boolean #float #complex #plus2net #python
Рекомендации по теме
welcome to shbcf.ru