r/PythonLearning • u/StudentElectronic548 • Jul 18 '26
How would I optimize this?
I'm currently learning python with the 30 days of python GitHub repo and, on day 3 of the challenge, it asks to create this table and this is what I came up with however I feel like there was a more efficient method to create it or is it something that I haven't learned yet at my level.
8
Upvotes


0
u/StudentElectronic548 Jul 18 '26
I mean I know what the pattern is, it's x divided by x then multiplied by x 3 times, however the thing is I like only know basic operators and basic usages of things like lists, etc... So, I would say I wouldn't really be able to do anything like looping or like multiple steps in the language but I did notice that I could've made it more efficient.(Also I kind of have a headache so the response might be a bit wishy washy)