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?
3 Answers
+ 3
You can use this.
print("how","are","you", sep = "@", end = "^^\n")
print("who you")
print("mama")
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.
0
Thanks for you guys' help!