- 2
What is wrong in this code for hollow square pattern of stars
n = 3 for i in range (n): print ("*" , end="") if ( i == 0 or n-1 == i): print("*" * (n-2), end="") else: print("" * (n-2), end="") print ("*")
4 Answers
+ 2
Put a Space between "" in the else branch
+ 1
Yeah it's working thank you so much friend
+ 1
Right....you get better each Week.
0
Plz give me some tips for my logic building and enhancing programming knowledge like you Oma Falk