![]() | ![]() |
A statement in Python refers to instructions that a Python interpreter can work on/execute. An example is str=’ I am a Programmer’ and number1=3. A statement having an equal sign(=) is known as an assignment statement. They are other types of statements such as the if, while, and for which will be handled later.
Practice Exercise
a. Write a Python statement that assigns the first number value of 18.
b. Write a programming statement that assigns the second number value of 21.
c. What type of statements are a. and b. above?