lundi 17 août 2020

Create a triangle pattern with * character, tilted in the opposite direction

line = "*" max_length = 6

while len(line) > max_length: print(line) line += "*"

while len(line) > 0: print(line) line= line[:-1]

Aucun commentaire:

Enregistrer un commentaire