April 2021
Beginner
296 pages
7h 10m
English
In Chapter 4, you learned how to program divergent paths for Python to follow. In this chapter, you’ll create looped paths with while and for loop statements. Loop statements repeat actions, so you don’t need to rewrite the same or similar code multiple times, resulting in fewer lines of code. In other words, you can solve problems more efficiently with code that’s easier to adapt. You’ll use these loop statements to generate visual patterns in Processing.
You’ll also learn to apply randomness to your patterns to make them more compelling and unpredictable. Processing’s random() function is useful for generating ...
Read now
Unlock full access