4.1k views
1 vote
Why were different data types developed? Discuss the commonly used data types in programming languages.

User Ulu
by
8.3k points

1 Answer

4 votes
If this is a school assignment, I don't know the exact wording used but data types are useful because they provide the values that a object has.

Datatypes that I know that are used are: Booleans, List, Arrays, Numbers/Integers, and Strings

An example would be the line: user = int(input(" "))
or at least something like that. The "int" is a datatype which requires a number/integer in an prompt.

User Ikkez
by
7.9k points