Python Variables & Data Types: My Learning Experience
One important thing I learned while studying Python variables and data types is the difference between a variable's name and its value.
I now understand that a variable name is simply a label used to identify and access stored information, while its value is the actual data assigned to it. For example, in age = 25, age is the variable name, and 25 is its value.
I also learned about three common Python data types: str, int, and float.
str: Used for text, such as
"Hello, Python!".int: Used for whole numbers, such as
25.float: Used for decimal numbers, such as
25.5.
Of these three, str felt the most natural to me because I could easily relate it to ordinary words and sentences. However, understanding how int and float work also helped me appreciate how Python handles different kinds of information.
This lesson has helped me understand how variables store information and why choosing the correct data type matters when writing Python programs.
I'm excited to keep practising, making mistakes, and improving my Python skills. Every lesson is helping me build a stronger foundation in programming!
#Python #PythonLearning #Variables #DataTypes #SoftwareEngineering