CHAPTER 9: PYTHON - CONDITIONAL CONTROL STRUCTURES AND TURTLE
PYTHON - CONDITIONAL CONTROL STRUCTURES AND TURTLE D. Define The following 1. Assignment operator: These operators are used to assign value to the variables. 2. Logical operator: These operators perform Logical AND, Logical OR and Logical NOT operations. E. Differentiate between the following: Simple Statement : Expression Statement A simple statement lies entirely within a logical line. We do not need to place more than one statement on a single logical line with a semicolon (;) as the separator. Python recommends one statement per line to make programs more readable. Expression is a combination of variables, values and operators. It is a type of instruction that combines values and operators and evaluates down to a single value. F. 1. What is indentation? Indentation is used to structure Python programs. Code blocks in Python are defined by their indentation. All the statements in conditional and looping statements are structured using indentation. 2