Are the reasons behind why Python manages objects, anywhere they could be read about? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 1

Are the reasons behind why Python manages objects, anywhere they could be read about?

it would help my progress to know why integers can be added to floats but not strings and why integer can become floats but not go back, etc

24th Dec 2016, 8:28 AM
Josh NoBusinezz
Josh NoBusinezz - avatar
1 Respuesta
0
The main data types are: strings, numbers, lists, tuples, and dictionaries. If you want to manipulate/combine 2 DIFFERENT data types, type conversion must be used (str(), int(), etc). Also data types are either mutable or immutable, research that also
29th Dec 2016, 4:16 PM
Jess Wolfe
Jess Wolfe - avatar