πŸ“Š Python
Q. Write the output of the following:
Code:
d = [1, 2, 3]
for k in d:
   print(k, end = "+")
else:
   print("final")
  • (A) 1+2+3+
  • (B) 1+2+3+final+
  • (C) 1+2+3+final
  • (D) 6+final
πŸ’¬ Discuss
βœ… Correct Answer: (C) 1+2+3+final

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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