Mar-20-2020, 03:47 PM
range(3, x, 2) returns an iterable beginning with 3 and ending at x. The third argument is the "step" which instructs how to calculate the next value. So, range(3, 12, 2) would include 3, 5, 7, 9, 11.
The "else" is used with the for loop. That block executes once the for loop has completed per the documentation.
The "else" is used with the for loop. That block executes once the for loop has completed per the documentation.