Ch 1 Python

1.5 Notion of instruction block and indentation

To conclude this introductory chapter, we will discuss now the notion of instruction block and indentation. In programming, it is common to repeat a number of things with loops, For example, imagine that you want to repeat 10 times 3 different instructions, one after the other. Look at the following false-code: instruction_that_tells_python_to_repeat_10_times_the_following: instruction1 instruction2 instruction3 following […]