Python: Printing ASCII Art Problems -


i'm attempting print piece of ascii art in python. i'm aware there options such asciimatics, first milestone i'm trying piece display in terminal. presents issues addressed: -i want make possible modify contents of lines, , read lists must used instead of regular strings. -with way print statements structured in python, find trickier characters of line print on same line. read requires format print(line1[x], end=" ")

i'm still having trouble getting loop print work properly. although lines print regular print statements, adding new formatting messes arrangement of characters.

here's looks code:

line0 = list("     ----    ") line1 = list("    $$$$$$   ") line2 = list("   !=!=!=!=  ")  num in range(1,13):     print(line0[num], end=" ")     print(line1[num], end=" ")     print(line2[num], end=" ") 

i want print see in code, spacing wrong. suspect the

end=" " 

parts don't work because have print spaces. should do?

well, found solution, no guys.

txt = '' item in line0:    txt += str(item) print(txt) 

Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -