πŸ“Š Python
Q. What will be the output of the following code snippet?
Code:
word = "Python Programming"
n = len(word)
word1 = word.upper()
word2 = word.lower()
converted_word = ""
for i in range(n):
 if i % 2 == 0:
   converted_word += word2[i]
 else:
   converted_word += word1[i]
print(converted_word)
  • (A) pYtHoN PrOgRaMmInG
  • (B) Python Programming
  • (C) python programming
  • (D) PYTHON PROGRAMMING
πŸ’¬ Discuss
βœ… Correct Answer: (A) pYtHoN PrOgRaMmInG

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
705
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Akash Lawaniya
Publisher
πŸ“ˆ
92%
Success Rate