Answer:
Here is a function that will print out the statement "Python is fun!" three times:
def pythonisfun():
for i in ran
ge(3):
print("Python is fun!")
To call this function, simply type pythonisfun() and press Enter.
Here is the complete code:
def pythonisfun():
for i in range(3):
print("Python is fun!")
pythonisfun()
This will output the following:
Python is fun!
Python is fun!
Python is fun!
Step-by-step explanation: