πŸ“Š Python
Q. How many times “Hello” will print
Code:
s=0
L = [2, 4, 6, 8, 10]
for i in range(len(L)-1):
     print("Hello")
print("Hello")
  • (A) 4
  • (B) 3
  • (C) 5
  • (D) 6
πŸ’¬ Discuss
βœ… Correct Answer: (C) 5

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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