KYS KYS - 6 months ago 49
Python Question

Plz help me on some basic python questions

I want to print

snirtsnirtsnirtsnirtsnirtsnirtsnirtsnirtsnirtsnirt

snirtsnirtsnirtsnirtsnirtsnirtsnirtsnirtsnirtsnirt


by using

print('''10*'snirt'
10*'snirt' ''')


but this python thing would only print

'10*'snirt''

10*'snirt'


what should i adjust?

Answer

This does the trick:

print("snirt" * 10 + "\n" + "snirt" * 10)