Topic List | Page List: 1 |
---|---|
Topic | ITT: Learning Python |
SpiritSephiroth 09/07/21 7:29:20 PM #226: | SomeLikeItHoth posted... Your code is looking a lot more organized. 113 lines at the moment. Im thinking maybe almost 160-200 before I'm finished? Questionmarktarius posted... Next, look into recoding combat as a function. This is your introduction to the DRY concept ("don't repeat yourself"). If you're using the same logic more than twice in the code, it really should be a function. Good idea! I'll look into that. Im glad this topic is getting more people back into Python. Feel free to post your codes here if you want. As for me, we had 31 degrees temperature here in London so I literally could not concentrate on anything. Even found it hard to play FFXIV. Going to try and pick it up tomorrow. --- ... Copied to Clipboard! |
Topic List | Page List: 1 |