Features of print() function Flashcards
1
Q
What are the features of the print function?
A
*It is used to print a message or value on the output device
*It converts the message or object into string before writing it on the screen
*It can have multiple parameters
*It supports multiple escape sequences to format the output, eg \n(new line) and \t(tab space)
2
Q
What does ‘,’ display between values?
A
The ‘,’ operator displays the values with a space/one space between them.
3
Q
What does ‘\t’(tab space) display?
A
The ‘\t’ escape sequence displays the values with a tab space(4 spaces) between it.
4
Q
What does ‘\n’(newline character) display?
A
The ‘\n’ escape sequence end a line displays the value in the next line.578assdtrt;