+ 2

People, what is data-types?

2nd Dec 2017, 12:39 PM
Sofia
6 Answers
+ 3
Thank you very much!
2nd Dec 2017, 12:43 PM
Sofia
+ 3
It is the different ways you store data. For example: 1 =>integer 1.0 =>float "1" =>string True =>boolean [1, '2', "hello",False] =>list ('A',5,'something) =>tuple {'a':45,'z':8427} =>dictionary And so on.
2nd Dec 2017, 12:48 PM
Max S
+ 2
It is the way to store some data to stack
2nd Dec 2017, 12:41 PM
êč€ëŻŒì€‘
êč€ëŻŒì€‘ - avatar
+ 2
It is a method in which data is stored in. Each data type is also a class itself, with their own class methods.
2nd Dec 2017, 12:47 PM
👑 Prometheus 🇾🇬
👑 Prometheus 🇾🇬 - avatar
+ 2
Thank you
3rd Dec 2017, 9:37 AM
Sofia
+ 1
a data type is a way of storing an information. the data type equally determine the type of operations that can be performed on the stored data, like 2 + 3 = 5 and '2'+'3'=23. it's due to data type that 2+3 gives 5 as 2 and 3 are integers type which are whole numbers, thereby using the operator + as additional operator where as'2'+'3' gives 23 because the type here is string which means set of characters there by treating the + operator as a concatenating operator. this can really enhance your understanding of data type as I think
7th Dec 2017, 5:28 PM
Mohamed Gadaphy Nkwenkwat
Mohamed Gadaphy Nkwenkwat - avatar