Print: Difference between revisions
From Jedisaber Wiki
No edit summary |
No edit summary |
||
| Line 9: | Line 9: | ||
<pre>Print this.</pre> | <pre>Print this.</pre> | ||
You can also print variables: | |||
<code>_textcon = "This is the text to print."</code> <br /> | |||
<code>print(_textcon)</code> | |||
=== Escape Characters === | === Escape Characters === | ||
| Line 21: | Line 26: | ||
\r Carriage Return (CR) <br /> | \r Carriage Return (CR) <br /> | ||
\n Line Feed (LF) <br /> | \n Line Feed (LF) <br /> | ||
=== References === | |||
https://realpython.com/python-print/?utm_source=notification_summary&utm_medium=email&utm_campaign=2025-06-26 | |||
Revision as of 00:22, 27 June 2025
Print prints stuff to the screen.
Basic Print stuff:
print("Print this.")
Will print:
Print this.
You can also print variables:
_textcon = "This is the text to print."
print(_textcon)
Escape Characters
In python, escape with a backslash \
Escape Sequence - Character
\\ Backslash
\b Backspace
\t Tab
\r Carriage Return (CR)
\n Line Feed (LF)
