Boolean (with True or False values) -Integer type (numerical value without a decimal point such as 43,23000000) Floating point number (a number with a decimal point such as π = 3.1415 .... or an exponential notation such as 10e3. 10e3 means 1000 to the 3rd power of 10) ・ Character string (character sequence)
Everything in Python is implemented as an object. (It was the same with Ruby)
It's like a transparent box containing data. Objects have the above data types, which determine what you can do with that data. Then, for the type, the value of the data contained in the box can be changed (mutable) and cannot be changed (immutable).
>>> a = 7
>>> print(a)
7
>>> b = a
>>> print(b)
7
Most of this chapter has been learned in C language. I felt nostalgic for my college days. I was able to study all the way through Chapter 2, but since the time allocation has improved, I will write it separately.
"Introduction to Python3 by Bill Lubanovic (published by O'Reilly Japan)"
Recommended Posts