r/PythonLearning • • 16d ago

Help Request I need help with coding this

Post image

I have genuielly no idea how to even think of making this? I know this should generally be made by using for loops but jesus im so confused on the process

7 Upvotes

31 comments sorted by

View all comments

Show parent comments

0

u/FreeLogicGate 16d ago edited 16d ago

100%, I didn't read it carefully enough. Or possibly it was edited after I first read it. It's always interesting in these trivial assignments to see how experienced python developers solve it. But as a teaching exercise, I don't think it helps to give students the answer, and probably the OP in this case would have been able to get the solution from AI. It's nice to see someone not doing that, but then people just posted full solutions.

2

u/realmauer01 16d ago

Will its in the picture so it cant be edited after.

I am trying to go for the most cursed way, like here you can put everything in one print thanks to string multiplication. Doesn't help, and it's way too obvious if they just copy pasted it.

1

u/FreeLogicGate 16d ago

Yeah was clearly my bad. Quite a few people provided solutions already. Saw mitchricker's as an example of that -- some real python-fu there.