Avinash
Avinash

Reputation: 133

How to initialize static variables in python3?

I am trying to figure out a way of declaring a variable whose value can not be changed in any way (static in c++), but in python3. Please let me know how.

Upvotes: 0

Views: 742

Answers (1)

shahin mahmud
shahin mahmud

Reputation: 945

there is no way of creating a const variable in python3, but there are some option and recommendation too, check the link below- how to set global const variables in python

Upvotes: 3

Related Questions