How to change the value in a variable? #shorts #python

preview_player
Показать описание
To change the value inside a variable, all you have to do is to target the variable you want to change the value inside and change it in a second statement. Example:

a = 1
a = 2
print(a)

Output:
2

--------------------------Subscribe-----------------------------
• If you like to see a variety of fun and interactive projects written in Python
• If you love ☕ and 🐶 WAIT! - Yeah! Definitely, coffee and dogs!
-----------------------------------------------------------------------

--------------------------Socials-----------------------------
------------------------------------------------------------------

--------------------------Support-----------------------------
--------------------------------------------------------------------

#variable #python
How to change the value in a variable? #shorts
Рекомендации по теме