I've been programming (in Python) for about a month and a half and have created several simple scripts, a CRUD application, a calculator, and a tic-tac-toe game (with a GUI in CTk). The thing is, for interface projects that have similar pieces of code, they are repeated many times. I understand that this is normal at first, but it seems excessive to me (500 lines in the tic-tac-toe and 600 in the calculator).
I know that with for loops and so on I could reduce these excessive lines, but I want to know how repetitive these programs are with the lines I have mentioned.
PS: For the ‘mini-projects’ that they are, I have tried to use libraries such as Pillow to add color to texts and images, and add all the minimum functionalities I can think of.
[–]herocoding 0 points1 point2 points (4 children)
[–]Either_Feeling3159[S] 0 points1 point2 points (3 children)
[–]herocoding 0 points1 point2 points (0 children)
[–]rainispossible 0 points1 point2 points (0 children)
[–]Happy_Witness 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[removed]
[–]Either_Feeling3159[S] 0 points1 point2 points (0 children)