My First Python Program – Learning print() and Variables

Today I wrote my first Python program. I started learning the basics of Python programming.
The first thing I learned is the print() function.
print() is used to display output on the screen.
Example:-
                 print("Hello World")
When I run this code, it shows Hello World on the screen.
Then I learned about variables.
Variables are used to store data.
EXAMPLE:- name = "Dhanush"
                     age = 18

    [ print(name)
      print(age) ]
In this program:
name stores my name
age stores my age
I understood that Python reads code line by line.
This is just the beginning of my Python journey. Tomorrow I will learn about data types.

Comments