Chapter 1 Exercises Flashcards

1
Q

In a print statement, what happens if you leave out one of the parentheses, or both?

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

If you are trying to print a string, what happens if you leave out one of the quotation marks, or both?

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

You can use a minus sign to make a negative number like -2. What happens if you put a plus sign before a number. What about 2 + + 2?

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

In math notation, leading zeros are ok, as in 09. What happens if you try this in Python?

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

What happens if you have two values with no operator between them?

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

How many seconds are there in 42 minutes 42 seconds?

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

How many miles are there in 10 kilometers? Hint: there are 1.61 kilometers in a mile.

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

If you run a 10 kilometer race in 42 minutes 42 seconds, what is your average pace (time per mile in minutes and seconds? What is your average speed in miles per hour.

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