![]() I would make a function with save_config() where you save your configurations and read_config() were you read the configuration parameters. You have save_size(self) which creates a new file, but in said file you have other parameters and you don't append those? I imagine that those parameters will disappear after using save_size() more than once? The _init_ delegates to other functions the member creations, yes makes the init cleaner but one loses track of what are your class memebers. This is my preference, can be done in different ways. I'am not a programmer, I do this as a hobby so my suggestions might be plain wrong so take it with a grain of salt.įirst the `_init_` function should be at the beginning of the class, so one can see directly which members are part of the class. I read your code, didn't try it, but I can give you some suggestions. I wrote a paste bin withe the right indentation Sorry reddit keeps messing up the format of the code Introduction to Programming with Python (from Microsoft Virtual Academy)./r/git and /r/mercurial - don't forget to put your code in a repo!./r/pyladies (women developers who love python)./r/coolgithubprojects (filtered on Python projects)./r/pystats (python in statistical analysis and machine learning)./r/inventwithpython (for the books written by /u/AlSweigart)./r/pygame (a set of modules designed for writing games)./r/django (web framework for perfectionists with deadlines)./r/pythoncoding (strict moderation policy for 'programming only' articles).NumPy & SciPy (Scientific computing) & Pandas.Transcrypt (Hi res SVG using Python 3.6 and turtle module).Brython (Python 3 implementation for client-side web programming).PythonAnywhere (basic accounts are free). ![]() (Evolved from the language-agnostic parts of IPython, Python 3).The Python Challenge (solve each level through programming).Problem Solving with Algorithms and Data Structures.Invent Your Own Computer Games with Pythonįive life jackets to throw to the new coder (things to do after getting a handle on python) Please use the flair selector to choose your topic.Īdd 4 extra spaces before each line of code def fibonacci(): Reddit filters them out, so your post or comment will be lost. If you are about to ask a "how do I do this in python" question, please try r/learnpython, the Python discord, or the #python IRC channel on Libera.chat. News about the dynamic, interpreted, interactive, object-oriented, extensible programming language Python Current Events
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |