Hey!
I’m back with my Day 2 update on my Python learning journey. Today was all about getting hands-on with variables, data types, and basic operations. I spent decent 3 hours and to write blog additional 1 hour to summarize my learning. bit hectic however its being weekend i thought of spend more time today on basics to get along with programming so that i can invest less time during weekdays.
It feels so satisfying to be writing more complex code already, even though I’m still just scratching the surface!
Here’s a quick rundown of what I’ve learned:
Firstly, Downloaded and configured the VSCode on my windows Laptop. and executed Hello World command. then moved ahead with learning basic Syntax and Structure ( print(), comments, indentation)
-
Variables & Data Types
I learned how to store information in variables and use different data types like strings, integers, floats, and booleans. For example, I learned how to assign values likename = "Sri Ram"
andage = 21
.
x = 10 # Integername = "Python" # Stringpi = 9.19 # Floatis_active = True # Boolean
-
Basic Operations
I got the hang of doing simple arithmetic in Python, such as addition, multiplication, and division. For example, I wrote some code to calculate the sum of two numbers and even played around with string concatenation. here is the list of operators i read about
-
User Input & Output
I also learned how to get input from the user using theinput()
function and display output usingprint()
. This is a great first step toward building interactive programs!
All in all, today was a great step forward—I’m feeling more confident and eager to continue. The next step will likely involve learning about control flow (like conditionals and loops), which will help me start building more dynamic programs.
Thanks for following along! More updates soon!
Comments
Post a Comment