Python Quiz

361. Which keyword is used to define a block of code that runs regardless of exceptions?
362. What is the output of:

print(2 ** 3 ** 2)
363. What does this return?

sorted([3, 1, 2], reverse=True)
364. Which method is used to add multiple elements to a list?
365. What is the output of:

bool([]) == False
366. What does `list.insert(0, 'a')` do?
367. What is the output of:

print('Python'.lower().capitalize())
368. What does the `in` keyword check?
369. What does `round(4.6)` return?
370. Which of the following is a correct dictionary definition?

Explore Programming Topics