Question
PYTHON Write a function multiply_string() that takes a string message and a number n and returns the string with message printed n times. Make a
PYTHON
Write a function multiply_string() that takes a string message and a number n and returns the string with message printed n times.
Make a new project Module6 with directories more_functions and test_functions.
In more_functions, make a file string_functions.py. Add the multiply_string() with pass.
In test_functions, make a file test_string_functions.py. Add a test test_multiple_string that tests the expect output of your name and your lucky number between 1 and 9. For example, a call to multiple_string with messaeg Ayah and number 3 would return 'AyahAyahAyah'.
Run the test, see it fail.
Write multiply_string()
Run the test, see it pass.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started