PT Ex.11 Flashcards

1
Q

Why do you have a comma at the end of a string/print line?

A

So that print doesn’t end the line. And go to the next line

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

How to add the directory to Windows Path?

A

Type following command into command prompt.

set path=%path%;C:\python26

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

What to type to exit Python Interpreter?

A

Control-D on Unix
Control-Z on Windows
You can also exit the interpreter by typing: quit()

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