Ask Question
24 August, 05:12

Write a method called multiconcat that takes a string and an integer as parameters. return a string that consists of the string parameter concatenated with itself count times, where count is the integer parameter. for example, if the parameter values are "hi" and 4, the return value is "hihihihi". return the original string if the integer parameter is less than 2

+2
Answers (1)
  1. 24 August, 05:20
    0
    Def multiconcat (string, number):

    retString = ""

    for i in range (number):

    retString + = string

    return (retString)
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write a method called multiconcat that takes a string and an integer as parameters. return a string that consists of the string parameter ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers