Python Variables: Declare, Concatenate, Global, Local & Delete a variable ( Python Tutorial 3)

Veröffentlicht am: 13 Juli 2019
auf dem Kanal: Expert Computest Dhruv Chaudhary
39
18

Python Variables: Declare, Concatenate, Global, Local & Delete a variable ( Python Tutorial 3)

Expert Computest Dhruv Chaudhary
What is a Variable in Python?

What is a Variable in Python?
A Python variable is a reserved memory location to store values. In other words, a variable in a python program gives data to the computer for processing.

Every value in Python has a datatype. Different data types in Python are Numbers, List, Tuple, Strings, Dictionary, etc. Variables can be declared by any name or even alphabets.

In this tutorial, we will learn,

How to Declare and use a Variable
Re-declare a Variable
Concatenate Variables
Local & Global Variables
Delete a variable
Expert Computest Dhruv Chaudhary

How to Declare and use a Variable
Let see an example. We will declare variable "a" and print it.

Re-declare a Variable
You can re-declare the variable even after you have declared it once.

Here we have variable initialized to f=0.

Later, we re-assign the variable f to value "guru99"
Expert Computest Dhruv Chaudhary
Concatenate Variables
Let's see whether you can concatenate different data types like string and number together. For example, we will concatenate "Guru" with the number "99".

Local & Global Variables
In Python when you want to use the same variable for rest of your program or module you declare it a global variable, while if you want to use the variable in a specific function or method, you use a local variable.

Delete a variable
You can also delete variable using the command del "variable name".

Queries Solved In this Video
DATATYPES , VARIABLES & IDENTIFIERS - PYTHON PROGRAMMING
Python 3 Programming Tutorial: Variables
Variables & Data Types In Python | Python Tutorial For Beginners | Python Programming
Python 3 Programming Tutorial - Global and Local Variables
Python Tutorial for Beginners | Data Types in Python


======================================================
Notice
This video does not broke any Community Guidelines of your YouTube Policies. So Please YouTube did not gave any strike...

Education Purpose Only!!!!!!

If you want to this. Please first inform through e-mail

======================================================


Thanks For Watching My Video....
Please Subscribe My Channel ....
And Like This Video....
Thanks
Expert Computest Dhruv Chaudhary


Auf dieser Seite können Sie das Online-Video Python Variables: Declare, Concatenate, Global, Local & Delete a variable ( Python Tutorial 3) mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Expert Computest Dhruv Chaudhary 13 Juli 2019 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 39 Mal angesehen und es wurde von 18 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!