Precision in the description of the steps is important in algorithm definitions. This youtube video comically illustrates the importance of precision in definition of steps for making a product. Making a Peanut Butter & Jelly Sandwich
Try the online introductory course in MathPlanet Python for simple repetition repetition (Programming, Logic and choice) – Mathplanet
define variables in this online introductory Python course To remember (Programming) – Mathplanet
boolean logic Logic and choice (Programming) – Mathplanet
Programming Basics: Statements and Functions https://www.pbslearningmedia.org/resource/programming-basics-crash-course-cs/programming-basics-crash-course-cs/
Example: factorial helper function in structured pseudocode Coded in Python3/Trinket
function factorial(n)
// Input: n is an integer > 0
prod1
for i = 1 to n do
prod prod i
end do
report prod
end function
Coded in Python3/Trinket video tutorial you can follow along and try it https://youtu.be/k-DkzFj0bsE
Online Python coding mini-challenges https://codingbat.com/python