Write a function that prints a given value, n number of times


Topic: Write a function that prints a given value, n number of times

Solution

def print_n(val, n):
    for _ in range(n):
        print(val)



List all Python Programs