First lines of codes - Learning Python (Part1)

Published on September 28, 2025

Since yesterday I started learning my 1st programming language Python. Well, I do know some HTML and CSS using which I also built and run this site. But as much as I know HTML and CSS are not considered as programming languages, they're markup languages. Okay, let's back to the point, I decided to learn Python from AtBS, and yesterday I completed chapter 1. So, I thought why not try to right something with my own without the help of anything...

And here is the result:

First lines of code

My first lines of codes...

Now let's discuss what it does:

1st task

First it greets user and print my name, along with it. Then ask to input the user's name. Now as lets say the user enter their name Linus...

2nd task

It again greets the user with there name, and also ask the user about his/her age ! While also printing my age which I set to 20, lets say the user enter their age 60...

3rd task

Now it prints the age the user enter with some message, and also prints what his/her age gonna be one year later. Now, as I also learned about operators, I thought why not try it too... So, I ask the user to input a two digit number, lets say the user type 83...

4th task

I again ask him to enter another number , but this time it should be a single digit number, lets assume the user type 2...

2nd task

And now the program runs it final task, which is to run some mathematical operations like, modulus, exponentiation, etc... and print the values...

So, that's all about my first lines of codes...