+ 1
does \n only generate a separate line when used in the print() function?
Or is it supposed to create a separate line when used in a string as well?
1 ответ
+ 8
You can also code "\n" in strings.
Example:
X = "This \n and this \n and this will be printed in seperate lines"