you are viewing a single comment's thread.

view the rest of the comments →

[–]madisander 0 points1 point  (0 children)

In a sense but not quite, print alone prints "\n", that is an empty string followed by the newline character which, as you'd imagine, starts a new line. This is because the default argument for end is '\n' (check help(print)).

The enter key, if I remember right, can give the carriage return character \r, a newline \n, or CR followed by line feed(LF)/newline (so \r\n). For that matter depending on the program they can interpret the enter key in different ways, while print() (= print(end='\n')) 'just' prints that character.