def trykiTabel(read, veerud, tulbalaius=15, pealkiri="tabel"): print(pealkiri.ljust(tulbalaius), end="") for veerg in veerud: print(veerg.ljust(tulbalaius), end="") print() for rida in read: print(rida.ljust(tulbalaius), end="") for veerg in veerud: print((rida+"/"+veerg).ljust(tulbalaius), end="") print() trykiTabel(["Juku", "Kati"], ["Tallinn", "Tartu"])