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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!