Q.
What will be the output of the following Python code?
r = [11, 12, 13, 14, 15, 16, 17, 18, 19]
A = [[0, 10, 20],
[30, 40, 50],
[60, 70, 80]]
for row in A:
for col in row:
r.append(col+10)
r Similar Questions
1.
What will be the output of the following Python code snippet?
k = [print(i) for i in my_string if i not in "aeiou"] 2.
What will be the output of the following Python code snippet?
k = [print(i) for i in my_string if i not in "aeiou"] 3.
What is the output of print(k) in the following Python code snippet?
k = [print(i) for i in my_string if i not in "aeiou"]
print(k) 4.
What will be the output of the following Python code snippet?
my_string = "hello world"
k = [(i.upper(), len(i)) for i in my_string]
print(k) 5.
Which of the following is the correct expansion of list_1 = [expr(i) for i in list_0 if func(i)]?
6.
What will be the output of the following Python code snippet?
x = [i**+1 for i in range(3)]; print(x); 7.
What will be the output of the following Python code snippet?
print([i.lower() for i in "HELLO"]) 8.
What will be the output of the following Python code snippet?
9.
What will be the output of the following Python code snippet?
print([[i+j for i in "abc"] for j in "def"]) 10.
What will be the output of the following Python code snippet?
print([if i%2==0: i; else: i+1; for i in range(4)])
PYTHON TOPICS