pull down to refresh
100 sats \ 6 replies \ @BlokchainB 10 Jul 2022 \ on: Daily discussion thread
Been watching this python course
Currently on chapter 7 (files) this is probably the best Python course I have watched to date. Thing is finding time to actually put what I learn to practice
Are you following along and doing exercises or just watching?
reply
Just following along. Now I am going to go back and review the free textbook that comes with this video and do some exercises. The videos are like lectures no examples. Why I stopped at 7 for now to re enforce what I learned 1-6. I understand most of it just struggle with loops
reply
What's the struggle?
reply
When I see it in practice I’m like yes I get it. But when it’s actually time to read an example then code it with out help my brain just turns to mush like I can’t come up with the code to do the loop
reply
What helped me is to think about the logic for a solving a small instance of the problem without loops. Then you can look for repeated code and decompose it into functions. After that, it's easier to see the parts that can be generalized to solve for an arbitrary instance. Wrap those functions in a loop to make the general solution :)
reply
I think of it more like a merry-go-round and each statement is sort of like your position as you go around. At some point the ride stops (you exit the loop), and you get on another ride.
reply