Pseucode is a way to express what your code should do, without using a particular language’s syntax.
In our assignment, To the water, for instance, pictured below:
We provide the students with the following Pseudocode
1 2 3 4 5 6 7 |
instantiate/create Pam at 0,0 Begin loop while pam is not water ahead pam waddle end loop pam goes around water pam waddles to fish pam grabs the fish |
As you can see, there is no Python syntax included in that snippet. Instead, we are expressing what the code –that you the student–should write!
The key to our pseudocode above is that you don’t need to know python or even how Penjee works. You can read the pseucode and understand what it means.