Variables And Assignment in Python (Nepali)

Published: 24 April 2020
on channel: Smarter Nepal
31
2

A variable is a named storage location in a computer's memory for holding a piece of information.

As an analogy, you can think of a variable as a labeled folder in which you store a piece of paper with

information on it such as a number or a word on this slide is an example of a variable in Python.

All variables have a name and a piece of information stored within them.

The example variable on this slide has the name my variable and has the value five stored within it.

In other words, the number five is the piece of information it holds storing value within a variable.

By setting it equal to the piece of information you want to store in it like what is shown here.

It's called an assignment.

Whenever you create a variable you must have a value assigned to it in order for your program to run

without errors.

You can also reassign variables stored value meaning that you can change the value stored within a variable

that has already had something stored in it by assigning it a different value on a lower line.


On this page of the site you can watch the video online Variables And Assignment in Python (Nepali) with a duration of hours minute second in good quality, which was uploaded by the user Smarter Nepal 24 April 2020, share the link with friends and acquaintances, this video has already been watched 31 times on youtube and it was liked by 2 viewers. Enjoy your viewing!