A
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")
L = [2, 4, 6, 8, 10]
for i in range(len(L)):
if L[i]//2==1:
print("Bye")
- Correct Answer - Option(D)
- Views: 25
- Filed under category Python
- Hashtags:
Discusssion
Login to discuss.