What are the common built-in data types in Python?

The common built-in data types in Python are:

String

A sequence of characters in called a string. They are declared within single or double-quotes. E.G., ‘Sana’, ‘she is going to the market’, etc.

Set

Sets are a collection of unique items that are not in order. e.g. {7, 6, 8}.

Dictionary

A dictionary stores values in key and value pairs where each value can be accessed through its key. The order of items is not important. E.g. {1:’apple’, 2:’mango’, 3:’banana’}.

Boolean

There are 2 Boolean values – True and False.

Popular Posts

Spread the knowledge
 
  

Leave a Reply

Your email address will not be published. Required fields are marked *