Datatypes in Python
What is a datatype- A datatype tells us that what kind of information is being stored in a variable. It also makes it easy to categorize the data stored. Types of Datatypes:- Primitive Datatype- These are predefined datatypes that are independent of all other kinds and include basic values of particular attributes, like text or numeric values . They are the most fundamental type and are used as the foundation for more complex datatypes. Composite Datatypes- These datatypes are made put of various primitive kinds that are mostly supplied by the user. They are also called as non-primitive datatypes User Defined Datatypes- This datatype is derived from an existing datatype. Anyone can create their own. Examples of Datatypes:- String- Represents a sequence of characters like "House" and "863218" Integer- Represents Whole numbers like 24 and -7 Float- Represents a fractional or decimal numbers Boolean- Represents true or false option Reference- Data Types in Programming...





Comments
Post a Comment