Oct-26-2018, 07:05 PM
(This post was last modified: Oct-26-2018, 07:05 PM by gruntfutuk.)
Don't try to write Python. Not at first.
Instead, work out how you would do this yourself if you had to do it in very very basic steps where you can only do one thing at a time, and have very poor memory, so have to have a post-it-note for each and every bit of information you are dealing with. Try it. Use a large surface. Do it physically.
The difficulty most people initially have with figuring out how to tell a computer what to do is that we don't realise just how dumb they are, especially in this modern age of very fancy touch and voice based apps. As humans, we take lots of shortcuts, intuitive leaps, recognise patterns. Computers don't.
Once you've done this, and refined it as a steps you can write down, with lines for loops, you have yourself an algorithm. We can help you then.
Instead, work out how you would do this yourself if you had to do it in very very basic steps where you can only do one thing at a time, and have very poor memory, so have to have a post-it-note for each and every bit of information you are dealing with. Try it. Use a large surface. Do it physically.
The difficulty most people initially have with figuring out how to tell a computer what to do is that we don't realise just how dumb they are, especially in this modern age of very fancy touch and voice based apps. As humans, we take lots of shortcuts, intuitive leaps, recognise patterns. Computers don't.
Once you've done this, and refined it as a steps you can write down, with lines for loops, you have yourself an algorithm. We can help you then.
I am trying to help you, really, even if it doesn't always seem that way