Guest User

Python Ukraine Flag

a guest
May 23rd, 2022
502
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. def c(se,t):return"\033[38;2;{};{};{}m{} \033[38;2;255;255;255m".format(se[0], se[1], se[2], t)
  2. l=16 # aspect ratio = 3:2, multiples of 7 that exceed 7 (i.e. 14, 28, etc.) work the best!
  3. a=l*l*1.5
  4. for i in range(1,int(a)+1): print(c([255,215,0] if i>.5*a else [0,87,183],'UKRAINE'[(i-1)%7]),end="" if i%(a/l)!=0 else "\n")
Advertisement
Add Comment
Please, Sign In to add comment