What will be the output of the following ?
for x in [10, 20]:
if(x==10):
print(x)
a. 10
b. 20
c. Error
d. Nothing will print
Answers
Answered by
3
Answer:
C. Error
Explanation:
You wrote the program in line 2: for x in [10,20]
Which should be: for x in range [10,20]
sharmasachin4740003:
If x = 10, then the cod if x % 2 == 0: will return ……………………………..
Similar questions
World Languages,
1 month ago
Math,
1 month ago
Math,
1 month ago
English,
3 months ago
Computer Science,
10 months ago
English,
10 months ago