21
What is the output of the following code?
from collections import deque
d = deque([1, 2, 3])
d.appendleft(0)
d.pop()
print(list(d))DiscussEasy
Loading subject content…
Loading practice questions…
What is the output of the following code?
from collections import deque
d = deque([1, 2, 3])
d.appendleft(0)
d.pop()
print(list(d))What is the output of the following code?
import random
random.seed(1)
a = random.random()
random.seed(1)
print(a == random.random())