0

How to freeze Variable in python?

>>> spam = 2 >>> Window = 3 >>> del spam >>> Window = 4 >>> spam = 5 >>> print(spam * window) I want to use Window =3 ,how can I?

24th Oct 2018, 12:57 PM
Robin Gupta
Robin Gupta - avatar
1 Respuesta
0
Are you talking about constants? No such thing in Python.
24th Oct 2018, 1:45 PM
HonFu
HonFu - avatar