Jan-16-2018, 09:34 AM
(This post was last modified: Jan-16-2018, 09:34 AM by Gribouillis.)
(Jan-16-2018, 09:25 AM)Steffenwolt Wrote: The foo, bar and cux are fake names to be replaced by reall onesYes, they are example names, or more technically metasytactic variables. Python also uses
ham, eggs, spam
for these.The common module may contain as many variables as needed.
Don't hesitate to use classes. A class instance such as
state
in my example is nothing but a place where you can store data by using the dot syntax, such asstate.bar = 'hello' state.mylist = ['a', 'b', 'c'] print(state.bar, state.mylist)etc.