Home / Programming MCQs / Python MCQs / Question
A
Q. What will be the output of the following code snippet?
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)
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Which of the following is the truncation division operator?
Which of the following operators is the correct option for power(ab)?
What is the output of the following code?
What is the output of the following program : print 'cd'.partition('cd')
What will be the output of the following Python program?
What is the output of the following code?
How to get last element of list in python? Suppose we have list with name arr, contains 5 elements.
Discusssion
Login to discuss.