Python Quiz

291. What is the output of:

print((1, 2) + (3, 4))
292. Which of the following is used to handle exceptions in Python?
293. What is the output of:

print(type([x for x in range(3)]))
294. Which Python function converts a string to a list of words?
295. What does `dict.keys()` return?
296. Which module is used to work with dates and times in Python?
297. What is the output of:

bool(0) or bool(1)
298. Which of the following functions is used to get user input in Python 3?
299. What is the result of:

not (True and False)
300. Which of these opens a file for both reading and writing?

Explore Programming Topics