Why are different data types used, like list and tuple are almost the same but used in different places

1 Like

@rameeezzrehman

Data types are nothing, but the different types of input data accepted by a programming language for defining, declaring, storing and performing mathematical & logical values/ operations. For example, in Python, many data types are used to deal with the general operations on the program developer’s input data. A few of the commonly used data types are numbers for numeric values, String for single or series of characters, Tuple for a combination of different data types, List for a collection of values, etc.

1 Like