Coursera课程Python for everyone:chapter5

Chapter 5

10 试题

This loop will run forever

The print 'All done' statement should be indented four spaces

There should be no colon on the while statement

while is not a Python reserved word

Jumps to the "top" of the loop and starts the next iteration

Exits the currently executing loop

Exits the program

Resets the iteration variable to its initial value

Exits the program

Jumps to the "top" of the loop and starts the next iteration

Resets the iteration variable to its initial value

Exits the currently executing loop

5

0

15

10

friend

Glenn

Sally

friends

Compute the average of the elements in a list

Find the smallest item in a list

Sum all the elements of a list

Count all of the elements in a list

-1

74

42

3

Is true if the smallest variable has a value of -1

matches both type and value

The if statement is a syntax error

Looks up 'None' in the smallest variable if it is a string

indef

while

break

for

def

0

This is an infinite loop

5

1

你可能感兴趣的:(Python)