0

Strings problem from begginer

Hi all, >>>print("how","are","you", sep = "@", end = "^^") print("who you") print("mama") how@are@you^^who you mama Whenever I tried to put an end icon on the 1st line the second line will move to 1st line as a result. Anyone can help me to solve this problem?

11th Apr 2020, 5:12 AM
Eric
Eric - avatar
3 Respostas
+ 3
You can use this. print("how","are","you", sep = "@", end = "^^\n") print("who you") print("mama")
11th Apr 2020, 5:18 AM
Valmob101
Valmob101 - avatar
0
print() automatically adds an endline to whatever you print, except when you override this by providing the end= keyword parameter. You can also use an empty print() statement to move to a new line. Or '\n' actually means a newline character.
11th Apr 2020, 6:52 AM
Tibor Santa
Tibor Santa - avatar
0
Thanks for you guys' help!
11th Apr 2020, 7:20 AM
Eric
Eric - avatar