Constants in Python

Опубликовано: 05 Ноябрь 2024
на канале: CyberTodd
730
15

Constants are variables with values that don't change.
You should know that Python doesn't have the data type constant.
You assign a constant variable like a usual variable, but the difference is that constants have capital letters. Example:

THIS_NAME = "Warning!"

-------------------------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  
--------------------------------------------------------------------

Constants in Python #shorts #python #variable