Computer Science, asked by mukeshkumar04065, 5 months ago

What is data type?List different types of data type in python.​

Answers

Answered by legendary10
12

Answer:

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 variables are instance (object) of these classes....

Answered by MrEccentric
4

★☆〖Qบęຮτ ı¨ ø nˇ〗☆★

⭐ Python Data Types⭐

•List: A Mutable, ordered sequence of elements separated by commas, which is enclosed within square brackets...

=> Used when we need :

A simple iterable collection of data, which may go for frequent modifications

•Tuple: An immutable, ordered sequence of elements separated by commas, which is enclosed within round brackets...

=> Used when we need:

No change in the data

•Set: A well-defined, unordered collection of distinct objects or items separated by commas, which is enclosed within curly brackets...

=> Used when we need:

The uniqueness of elements, or to avoid duplicacy

No change in the data

•Dictionary: A well-defined, mutable, unordered collection of key-value pairs called as items; A mapping between a set of keys/indices and a set of values...

=> Used when:

Our data are being constantly modified

We need a fast look-up based on a custom key

A logical association between the key-value pair

____________________________________________________

<Judge It Yourself...>

(Plagiarism-Free ☺️)

Hope it helps you! ヅ

✪ Be Brainly ✪

Similar questions