"""author: @pythonpips"""

ok = 'ok!'
print((ok+'\n')*2)
"""
outputs:
ok!
ok!
"""
How to Print a String two times in two lines in Python

Subscribe to our newsletter