31. Which of the following functions does not throw an error?
32. What will be the output of the following Python function?
len(["hello",2, 4, 6])
len(["hello",2, 4, 6])
33. What is the output of the following code:
my_list = [3, 1, 4, 1]
print(sorted(my_list))
my_list = [3, 1, 4, 1]
print(sorted(my_list))
34. Which of the following functions does not necessarily accept only iterables as arguments?
35. What is the output of the following code:
my_list = [1, 2, 3]
print(list(reversed(my_list)))
my_list = [1, 2, 3]
print(list(reversed(my_list)))
36. What will be the output of the following Python functions?
float('1e-003')
float('2e+003')
float('1e-003')
float('2e+003')
37. What will be the output of the following Python function?
ord(65)
ord(‘A’)
ord(65)
ord(‘A’)
38. What does the built-in function chr() do in Python?
39. What will be the output of the following Python function?
list(enumerate([2, 3]))
list(enumerate([2, 3]))