filmov
tv
#9 Python Tutorial for Beginners | More on Variables in Python

Показать описание
Check out our courses:
Coupon: TELUSKO10 (10% Discount)
Coupon: TELUSKO20 (20% Discount)
Udemy Courses:
For More Queries WhatsApp or Call on : +919008963671
In this lecture we will learn:
- Variables in Python
- Memory area of variables in Python
- How to get the address of a variable?
- Garbage collection
- Data types in Python
#1
- Every variable has its address.
- In Python, the id() function is used to get the address of a variable.
- We can also assign the value of one variable to any other variable.
- In python, whenever you create multiple variables and if they have the same data then they will point towards the same box or same memory area.
- Everything is an object in Python.
- Variables are also known as tags as we tag the value with a variable.
- If the same variable store multiple values, then that variable will point towards the new memory area where the new value is get stored.
#2
- If there is any data present in the memory that is not referenced by any variable, then that will be removed from the memory by the Garbage collector.
#3
- The value of variables can be changed but the value of the constant remains the same.
- In python, we represent constants through capital letters.
- type() function is used to get the data type of value of a variable.
- Besides in-built data types, we can also create our own types.
Editing Machines & Monitors :
More Learning :
Donation:
PayPal Id : navinreddy20
Coupon: TELUSKO10 (10% Discount)
Coupon: TELUSKO20 (20% Discount)
Udemy Courses:
For More Queries WhatsApp or Call on : +919008963671
In this lecture we will learn:
- Variables in Python
- Memory area of variables in Python
- How to get the address of a variable?
- Garbage collection
- Data types in Python
#1
- Every variable has its address.
- In Python, the id() function is used to get the address of a variable.
- We can also assign the value of one variable to any other variable.
- In python, whenever you create multiple variables and if they have the same data then they will point towards the same box or same memory area.
- Everything is an object in Python.
- Variables are also known as tags as we tag the value with a variable.
- If the same variable store multiple values, then that variable will point towards the new memory area where the new value is get stored.
#2
- If there is any data present in the memory that is not referenced by any variable, then that will be removed from the memory by the Garbage collector.
#3
- The value of variables can be changed but the value of the constant remains the same.
- In python, we represent constants through capital letters.
- type() function is used to get the data type of value of a variable.
- Besides in-built data types, we can also create our own types.
Editing Machines & Monitors :
More Learning :
Donation:
PayPal Id : navinreddy20
Комментарии