Python 3 Flashcards

1
Q

How would you write text on a new line when only
using print once?

For example you want to write

Hello world!
Hello world!

A

To this you would use \n

print(“Hello world!\nhello world!”)

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

What is an indentation error?

A

An indentation error means that there is an unexpected indent.

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