1.
In Python, how can the repeated elements be removed from the following list:
words = ['one', 'one', 'two', 'three', 'three', 'two']
words = set(words)
print words
2.
What is the output of the following Python code:
mylist = ["a", "b", "c", "d"]

print[(i, j) for i, j in enumerate(mylist)]
3.
Which of the following is an immutable data type in Python?
4.
What is the output of the following Python code:
y = 10
z = lambda x: x * y
print z(6)
5.
What is the output of the following Python code:
a = [1, 2, 3, None, (), [], ]
print len(a)
6.
What is the output of the following Python code:
d = lambda p: p * 2
t = lambda p: p * 3
x = 3
x = d(x)
x = t(x)
x = d(x)
print(x)
7.
What is the output of the following Python code:
x = True
y = False
z = False

if not x or y:
    print 1
elif not x or not y and z:
    print 2
elif not x or y or not y and x:
    print 3
else :
    print 4
8.
What is the output of the following Python code:
counter = 1
def do_lot_of_things():
    global counter
for i in (1, 2, 3):
    counter += 1
do_lot_of_things()
print(counter)
9.
What is the output of the following Python code:
values = [2, 3, 2, 4]
def my_transformation(num):
    return num * * 2
for i in map(my_transformation, values):
    print(i)
10.
What is the output of the following Python code:
L = ['1', '2', '3']
print "".join(L)