A

Admin • 832.27K Points
Coach

Q. Write the output of the following code

Code:
L = [13 , 12 , 21 , 16 , 35 , 7, 4]
sum = 5
sum1 = 3
for i in L:
if (i % 4 == 0):
sum = sum + i
continue
if (i % 7 == 0):
sum1 = sum1 + i
print(sum , end=" ")
print(sum1)
  • (A) 37 66
  • (B) 32 66
  • (C) 35 66
  • (D) 38 66
  • Correct Answer - Option(A)
  • Views: 17
  • Filed under category Python
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.