Daily Python-1

Mahesh Varma
2 min readFeb 24, 2021

The aim of this blog is just to introduce you to programming in python the rest hard work you have to do it on your own.

Photo by Jon Tyson on Unsplash

In my previous blog we have seen how to use print() function in python, in this blog we will know how to store values in variables for operations such as addition, subtraction, multiplication and division. One can get a doubt that what are variables ?

In python variables are used to point to the memory location where our values are stored, the next question maybe what type of values can be stored in python?

Basic types of Integer, Float, String and Boolean can be stored in python and type can be checked with type() function as shown in code below. Note that python automatically identifies the type of a variable no need to specifically declare as in C language.

python code describing use of type() function

For different type of basic operations refer below code

Python code for basic mathematical operations

That’s it for this blog and don’t forget to try out various combinations using basic mathematical operators.

Useful Links:

Please visit below link to further explore python variables

The link for next blog will be posted here

--

--