138k views
1 vote
Write a function expand_string(a, pre, suf, num) that takes the parameters a,pre,sub and num appends the prefix pre, and suffux suf to the string a num times and returns the new extended string. Input: a=test, pre=pr, suf=su, num=2. Output: prprtestsusu. In Pyrhon, please. ​

User Fugogugo
by
4.1k points

1 Answer

6 votes

Answer:99

Explanation:88

User Janna Maas
by
3.4k points