0

how to print this square aside

b=int(input("Masukkan Jendela: ")) a=int(input("Masukin angkamu : ")) for j in range(b): for i in range(a) : if (i==0 or i==a-1): print ("#"*a) else: spasi=" "*(a-2) print ("#"+spas+"#") Print (end=" ")

10th Oct 2017, 4:11 PM
Syech Jamal Bawazier
Syech Jamal Bawazier - avatar
1 Answer
0
I'm not sure thats what you're looking for, but this seems to work: b=int(input("Masukkan Jendela: ")) a=int(input("Masukin angkamu : ")) for j in range(b): for i in range(a) : if (i==0 or i==a-1): print ("#"*a) else: spasi=" "*(a-2) print ("#"+spasi+"#") print (end=" ")
9th Nov 2017, 8:42 PM
Urszula Bronkowska
Urszula Bronkowska - avatar