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

Pubblicato il: 13 luglio 2019
sul canale di: 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


In questa pagina del sito puoi guardare il video online Python Variables: Declare, Concatenate, Global, Local & Delete a variable ( Python Tutorial 3) della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Expert Computest Dhruv Chaudhary 13 luglio 2019, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 39 volte e gli è piaciuto 18 spettatori. Buona visione!