Generation

generate functionThu, 25 May 2023

Imprime el siguiente patron usando el ciclo while y un asterisco * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

def print_star(rows): i = 0 while i < rows: print("*" * (i + 1)) i += 1 rows = 8 print_star(rows)

Want to kickstart your project?Use the new AI Studio to create your code