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
4 Respostas
+ 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..
+ 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
+ 1
Dragon RB
Tank you!!
do you have an example in code?
It can be cool to see it