What will be the output of the following Python codes?
1) x = ['ab', 'cd']
for i in x:
i.upper()
print(x)
a) [‘ab’, ‘cd’]
b) [‘AB’, ‘CD’]
c) [None, None]
d) none of the mentioned
2) i = 1
while True:
if i%3 == 0:
break
print(i)
i + = 1
a) 1 2
b) 1 2 3
c) error
d) none of the mentioned
3) x = 'abcd'
for i in x:
print(i)
x.upper()
a) a B C D
b) a b c d
c) A B C D
d) error
4) x = 'abcd'
for i in range(len(x)):
print(i)
a) a b c d
b) 0 1 2 3
c) error
d) 1 2 3 4
5) for i in range(0):
print(i)
a) 0
b) no output
c) error
d) none of the mentioned
Answers
Answered by
1
Answer:
oooooooooooooooooovvcsssfgvbnjjifsshjk
Explanation:
hhbvvcddjnbvsawwefhiojnkppfcvji
Similar questions
Social Sciences,
2 months ago
Math,
2 months ago
Social Sciences,
2 months ago
English,
5 months ago
Math,
5 months ago
Social Sciences,
11 months ago
Math,
11 months ago