Correct Answer: ['P', 'y']
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Python Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More Python MCQ Questions
Which datatypes are immutable in Python
Which of these will allow you to put more than one statement in one line of text?
In a Python 2 new-style class declared as 'Child(Base)', what is the correct way for a method 'foo()' to call its base implementation?
How is the ternary operator written in Python 2.5+?
Which is _not_ a way to control how Python finds the implementation of modules for import?
Output of the following Python code? lis = [11, 22, 33] lis1 = [14, 5, 6] lis2= lis + lis1 print (end='') for i in range(0,len(lis2)): print (lis2[i]*1, end=' ') print ("\r") lis3 = lis * 2 print (end='') for i in range(0,len(lis3)): print (lis3[i]+1, end=' ')
Correct answer from the given options. class St: stm = stm = 'B' def __init__(self, n, r): self.n = n self.r = r a = St('D', 3) print (a.stm) St.stm = 'D' b = St('A', 4) print (a.stm) print (b.stm)
Output of the following Python language code? def ps(a,b = 2): return a + b a=8 s1 = 1 i = 1 while i <= a: s1 = s1 + i *2 i = i+1 print(ps(a=1) + ps(a=1, b=3)+s1)
Output of the Python code given in the image?
Output of the given Python code? tuple1 = (0 ,1, 2, 3) print(tuple1[1:]) print(tuple1[::-1]) print(tuple1[2:4])