It101-1l lesson 3-5 Flashcards
are essential in programming as they allow programs to display information to the user
Output operations
displaying output to the screen or console can be achieved using the
print function
the ______ character is used to insert a newline in the output.
\n
specifies what to print at the end of the output.
end parameter
are special character combinations that allow you to represent characters that are difficult to type or have a special meaning within a string
Escape sequences
- Moves the cursor to the beginning of the next line.
\n: Newline
Inserts a horizontal tab.
\t: Tab -
- Inserts a double quote character.
\” : Double quote
- Inserts a single quote character.
\’: Single quote
Inserts a backslash character.
\\: Backslash -
\n what is this called?
new line
\t what is this called?
tab
" What is this called?
double quote
' what is called?
single quote
\ what is this called?
Backslash
allow you to specify where and how the values of variables should be inserted into the output.
Placeholders
are used within output statements to indicate the position and format of variable values.
Placeholders