0

Data types in python

Hello guys Iā€™m new in python And I noticed that you can use four different data types Boolean String Integer And float number You canā€™t mix them in a mathematical operation Like +,*,\,< and so on.. My question is: Is there more than four types? Thant you Demo code of these four types https://sololearn.com/compiler-playground/cTU7ORXcyyYJ/?ref=app https://sololearn.com/compiler-playground/cTU7ORXcyyYJ/?ref=app

8th Oct 2023, 4:12 PM
Dror Krief
4 Answers
+ 2
Yes, I assume that there are more data types in Python, such as: - * list * dictionary * set * tuple * [User-defined Data Types] And [Built-In Data Types]. These data types allow you to store multiple values, depending on what it does. Such as: List for storing values, mutable; Dictionary for storing values in key:value pairs; Set for storing unique items; and so on..
8th Oct 2023, 4:31 PM
Dragon RB
Dragon RB - avatar
+ 2
Here's an example of some data types in Python.. There are many other data types that I did not mention in the code.. https://code.sololearn.com/ciSzrdNYvgio/?ref=app
8th Oct 2023, 4:49 PM
Dragon RB
Dragon RB - avatar
+ 1
Dragon RB Tank you!! do you have an example in code? It can be cool to see it
8th Oct 2023, 4:38 PM
Dror Krief