Answer:
The program to this question can be described as follows:
Program:
def ilovepython(): #defining a method
for i in range(3): #defining a loop that print messasge three times
print('I love Python')#print messasge
ilovepython() #calling the method
Output:
I love Python
I love Python
I love Python
Explanation:
Description of the python program can be described as follows:
- In the above Python program, a method "ilovepython" is defined, inside the method a for loop is used, inside the loop print method is used, that print the message "I love Python".
- In python for loop is used to iterate over series and we can execute a set of statements with the loop, tuple, series, once for each element in the list.
This way we can turn it on or off so we don't waste power.
Hope I helped! Just tell me if i'm wrong!
<span>The space between the lines of program codes make the code easier to read. This is used by programmers to make their programs more readable and clear. The space between the lines is not recognized by the compiler, thus it is ignored by the compiler.</span>
Answer:
"sing" that is the answer
Explanation: