I tried this one and got an error…:
yona = “%s %s %s”
print yona % (\n 1,\n 2, \n 3)
Yes, that won’t work because you’re putting \n chars in the middle of python code, but those only work inside " (quote) or ’ (single-quote) pairs.
I tried this one and got an error…:
yona = “%s %s %s”
print yona % (\n 1,\n 2, \n 3)
Yes, that won’t work because you’re putting \n chars in the middle of python code, but those only work inside " (quote) or ’ (single-quote) pairs.