Home / Programming MCQs / Python MCQs / Question
R
Q. What will be the output of the following Python code?
str1="learn python" str2="" str3="" for x in str1: if(x=="r" or x=="n" or x=="p"): str2+=x pass if(x=="r" or x=="e" or x=="a"): str3+=x print(str2,end=" ") print(str3)
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
What will be the output of the following code snippet?
Study the following function: all([2,4,0,6]) What will be the output of this function?
What is the method inside the class in python language?
Which of the following is a disadvantage of decision trees?
Write the output of the following code
What will be the output of given Python code?
Amongst which of the following is / are true about the while loop?
Which of the following is not a keyword in Python?
Which of the following creates two grids on a row for plotting 2 graphs in matplotlib?
If return statement is not used inside the function, the function will return:
Discusssion
Login to discuss.