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)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does ‘,’ display between values?

A

The ‘,’ operator displays the values with a space/one space between them.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does ‘\t’(tab space) display?

A

The ‘\t’ escape sequence displays the values with a tab space(4 spaces) between it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does ‘\n’(newline character) display?

A

The ‘\n’ escape sequence end a line displays the value in the next line.578assdtrt;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly