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----------------------------
• Twitter: / iftodd1
• Facebook: / iftodd
• Instagram: / if_todd
------------------------------------------------------------------
-------------------------Support----------------------------
You can support me here: / if_todd
--------------------------------------------------------------------
#variable #python
How to change the value in a variable? #shorts