23 lines
536 B
Python
23 lines
536 B
Python
#Ligne
|
|
def ligne(longueur: int):
|
|
for loop in range(longueur):
|
|
print("X", end="")
|
|
print()
|
|
|
|
#Rectangle
|
|
def rectangle(lignes: int, colonnes: int):
|
|
for ligne in range(lignes):
|
|
if ligne > 0 and ligne < lignes - 1:
|
|
print("#", end="")
|
|
for colonne in range(colonnes - 2):
|
|
print(" ", end="")
|
|
print("#", end="")
|
|
else:
|
|
for colonne in range(colonnes):
|
|
print("#", end="")
|
|
print()
|
|
|
|
|
|
|
|
#ligne(int(input()))
|
|
rectangle(10, 20) |