A

Admin • 832.70K Points
Coach

Q. How many times “Bye” will print:

Code:
s=0
L = [2, 4, 6, 8, 10]
for i in range(len(L)):
if L[i]//2==1:
print("Bye")
  • (A) 4
  • (B) 3
  • (C) 2
  • (D) 1
  • Correct Answer - Option(D)
  • Views: 25
  • 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.