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")
β
Correct Answer: (D)
1
s=0
L = [2, 4, 6, 8, 10]
for i in range(len(L)):
if L[i]//2==1:
print("Bye")
You must be Logged in to update hint/solution