πŸ“Š Python
Q. Write the output of the following
Code:
s=0
L = [2, 4, 6, 8, 10]
for i in range(1,len(L),1):
   s = s + L[i]
print(s)
  • (A) 28
  • (B) 30
  • (C) 24
  • (D) 26
πŸ’¬ Discuss
βœ… Correct Answer: (A) 28

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
157
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Manisha Agrawal
Publisher
πŸ“ˆ
84%
Success Rate