0
Practice with nested loops
width=int(input("Enter width: ")) height=int(input("Enter height: ")) for x in range(height): print() for x in range(width): print("*",end=" ") print() for x in range(height-2): print("*",end=" ") for x in range(width-2): print("-",end=" ") print("*") for x in range(width): print("*",end=" ") break
1 Odpowiedź
0
Nice!