Python doesn't have constants

Pubblicato il: 28 agosto 2023
sul canale di: Python Morsels
637
36

Variables point to objects. Constant variables in other languages cannot be reassigned. We don't have any equivalent of that in Python. We have immutable objects, but not constant variables.

https://pym.dev/python-doesnt-have-co...

Find more Python screencasts at https://pym.dev/screencasts/

00:00 The CONSTANT convention
00:18 Variables point to objects
00:55 Immutable objects cannot be changed
01:20 Assignment changes what a variable points to
02:07 Python has immutable objects but not constant variables


In questa pagina del sito puoi guardare il video online Python doesn't have constants della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Python Morsels 28 agosto 2023, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 637 volte e gli è piaciuto 36 spettatori. Buona visione!