Optimizing Small Python Code

Kais Ayadi kayadiwork at gmail.com
Tue Jun 22 11:03:53 EDT 2021


Hi There!
this is a small python code executed in 61 steps

for n in range(1, 7):
    print (n)
    for x in range(0, n):
        print("     ", x)

can this code be more optimised?


More information about the Python-list mailing list