Python Quiz

341. What is the result of:

print((2 + 3) * 4)
342. Which method can be used to remove an item from a list by value?
343. What does the following return?

'spam'.replace('a', 'o')
344. Which built-in function is used to return the largest item in an iterable?
345. What is the output of:

'hello'.count('l')
346. What does `int(True)` return?
347. Which data type is returned by input() in Python 3?
348. What is the correct syntax to check if a key exists in a dictionary?
349. What will this code print?

print('python' > 'Python')
350. What is the result of:

[1, 2, 3] + [4, 5]

Explore Programming Topics