Ask Question
8 July, 00:46

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

+5
Answers (1)
  1. 8 July, 01:39
    0
    Def multiconcat (string, number):

    retString = ""

    for i in range (number):

    retString + = string

    return (retString)
Know the Answer?
Not Sure About the Answer?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers