您的位置:首页 > 编程语言 > Python开发

Coursera课程Python for everyone:chapter5

2016-02-17 11:13 369 查看


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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息