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
En esta página del sitio puede ver el video en línea Python Variables: Declare, Concatenate, Global, Local & Delete a variable ( Python Tutorial 3) de Duración hora minuto segunda en buena calidad , que subió el usuario Expert Computest Dhruv Chaudhary 13 julio 2019, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 39 veces y le gustó 18 a los espectadores. Disfruta viendo!