News

In the early days of C, you’d occasionally see someone — probably a former Pascal programmer — write something like this: #define BEGIN { #define END ... for loop inside of Python.
The first line, “if tasks:” asks Python to check if the tasks list is empty. If it isn’t, we’ll loop through it using a for loop. For loops have a defined starting and ending point.