Back to Browse

How Are Python's Mutable Constants Useful

329 views
Nov 14, 2024
8:37

In python, most constants aren’t guaranteed to be constant during the program’s lifetime, but they are still quite helpful. In this video I’ll explore how python constants are still important to use, even if they can be mutable. And while the examples today will all be in python, the ideas shared will carry over to most programming languages. Even ones that enforce constants being constant. You can see the code examples referenced in this video here: https://seniorcodereviewbuddy.com/youtube-video-details/how-pythons-mutable-constants-useful/ The intro music is: Acid Jazz by Kevin MacLeod is licensed under a Creative Commons Attribution 4.0 license. https://creativecommons.org/licenses/by/4.0/ Source: https://freemusicarchive.org/music/Kevin_MacLeod/Jazz_Sampler/AcidJazz_1430 Artist: http://incompetech.com/ The outro music is: Funk Game Loop by Kevin MacLeod is licensed under a Creative Commons Attribution 4.0 license. https://creativecommons.org/licenses/by/4.0/ Source: http://incompetech.com/music/royalty-free/index.html?isrc=USUAN1100839 Artist: http://incompetech.com/ 00:00 Intro 01:50 Example 1 04:01 Example 2 06:10 Example 3 07:54 Conclusions

Download

0 formats

No download links available.

How Are Python's Mutable Constants Useful | NatokHD