def my_function(n): if n == 1: return for i in range(1,n+1): for j in range(1, n+1): print("*", end="") break my_function(5)