This commit is contained in:
Samuel Vermeulen 2023-01-05 16:53:01 +01:00
parent 251be35b3d
commit 173224bdc1

View File

@ -0,0 +1,11 @@
def rectangle(nbLignes: int,nbColonnes: int,motif: str):
for ligne in range(nbLignes):
for colonne in range(nbColonnes):
print(motif, end="")
print()
nbLignes = int(input())
nbColonnes = int(input())
motif = input()
rectangle(nbLignes, nbColonnes, motif)