What is variable ? | variable in python | variable

Published: 02 June 2020
on channel: Rajesh Bhandari
27
4

What is variable ? | variable in python | variable
hey guys
This is Rajesh Bhandari and welcome to my Youtube channel

About this video
Variables In Python?
A variable is a memory location where you store a value. The value that you have stored may change in the future according to the specifications.
A Variable in python is created as soon as a value is assigned to it. It does not need any additional commands to declare a variable in python.
There are a certain rules and regulations we have to follow while writing a variable, lets take a look at the variable definition and declaration to understand how we declare a variable in python.
Variable Definition & Declaration
Python has no additional commands to declare a variable. As soon as the value is assigned to it, the variable is declared.
X=10
Variable is declare as the value 10 assigned to it
There are a certain rules that we have to keep in mind while declaring a variable:
1. The variable name cannot start with a number. It can only start with a character or an underscore.
2. Variables in python are case sensitive.
3. They can only contain alpha-numeric characters and underscores.
4. No special characters are allowed..
5. Use underscore if you want to create a variable name having two or more words.

#variable #rajeshbhandari


On this page of the site you can watch the video online What is variable ? | variable in python | variable with a duration of hours minute second in good quality, which was uploaded by the user Rajesh Bhandari 02 June 2020, share the link with friends and acquaintances, this video has already been watched 27 times on youtube and it was liked by 4 viewers. Enjoy your viewing!