Hello all,
What is here wrong???
"
"rint (res)linerepeatdraw_line
What is here wrong???
def repeat (symbol,n): res = "" while((n> 0)): res=(res+symbol) n=(n-1) return res def draw_line (n): return repeat("*",n) def draw_square(n): l=(draw_line(" ")+"\n") return repeat(res,n) res=draw_square(3) print (res)The output must be:
"
Output:***
***
***
""rint (res)linerepeatdraw_line