Question: 1Write a program with a function repeat string, which takes two arguments, an integer m and a string st. The function returns st, repeated a

 1Write a program with a function repeat string, which takes two

1Write a program with a function repeat string, which takes two arguments, an integer m and a string st. The function returns st, repeated a number of times equal to m. Print the result in the main program. 2] write a function whose two arguments are two lists of numbers. The function returns the sum of all the numbers in the two lists Note: You are not allowed to use the Python function sum, use a for loop instead to add up the list elements Test the function in the main program with these lists for arguments: [2, 3, 4] and [20, 30, 40, 50]

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!