Autumn Offers - hours only!Up to 80% off on all courses and bundles.-Close


Good! Let's solve another one!


Create two functions: print_five_times() and speak(). The function print_five_times() should accept one parameter (called sentence) and print it five times.

The function speak(sentence, repeat) should have two parameters:

  • sentence: a string of letters.
  • repeat: a boolean with a default value set to False.

If the repeat parameter is set to False, the function should just print a sentence once. If the repeat parameter is set to True, the function should call the print_five_times() function.