Variable in python – tutorial # 1

first program in python – tutorial # 1

Video about variables in python


Variable are temporary place to store data and perform operations on data stored. You can do any manipulation.

Variable has 2 parts

  1. Variable name ( before equal – Left side)
  2. variable value (after equal – Right side)
 variable_name = "Hello" 

How to print variable?

It is very very easy. Just use the variable in print


Now run the code in terminal and Boom it will work.


Source Code

<div>variable_name = "Hello"</div>
<div># 2nd variable</div>
<div>person_name = "Khan"</div>
<div># Now I will print my variable</div>
<div># No need to make big big variable names :P</div>
<div># lets print 2nd variable</div>
<div># Let run the program in terminal</div>
<div># I want to change my variable name</div>
<div># Lets run again.</div>
Tony BB

TonyBB is a Coach , marketer, hypnotist and a founder of RSKVF Production who specializes in providing simple, affordable, and easy to use solutions for Life.

Click Here to Leave a Comment Below 0 comments

Leave a Reply: