Python Final Submission
Python Final Submission
1- Write a program that asks the user for a number then prints the following sentence that number of
times: ‘I am back to check on my skills!’ If the number is greater than 10, print this sentence
instead: ‘Python conditions and loops are a piece of cake.’ Assume you can only pass positive
integers.
4- 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), and 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.
('go', 'stay')