Write a function to print a string by repeating it n times


Topic: Write a function to print a string by repeating it n times

Solution

def print_repeatnstring(text:str, n:int)-> str:
    return text*n



List all Python Programs