Print: Difference between revisions
From Jedisaber Wiki
mNo edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
Print prints stuff to the screen. | Print prints stuff to the screen. | ||
=== Basic Print stuff: === | |||
<code>print("Print this.")</code> | <code>print("Print this.")</code> | ||
| Line 5: | Line 7: | ||
Will print: | Will print: | ||
Print this. | <pre>Print this.</pre> | ||
=== Escape Characters === | |||
In python, escape with a backslash \ | |||
Escape Sequence - Character | |||
\\ Backslash <br /> | |||
\b Backspace <br /> | |||
\t Tab <br /> | |||
\r Carriage Return (CR) <br /> | |||
\n Line Feed (LF) <br /> | |||
Revision as of 00:19, 27 June 2025
Print prints stuff to the screen.
Basic Print stuff:
print("Print this.")
Will print:
Print this.
Escape Characters
In python, escape with a backslash \
Escape Sequence - Character
\\ Backslash
\b Backspace
\t Tab
\r Carriage Return (CR)
\n Line Feed (LF)
