Top Python Quiz Questions 🐍
1.69K subscribers
81 photos
4 links
πŸŽ“πŸ”₯πŸ’Ύ If you want to acquire a solid foundation in Python and/or your goal is to prepare for the exam, this channel is definitely for you.
🀳Feel free to contact us - @topProQ
And if you are interested in Java https://t.me/topJavaQuizQuestions
Download Telegram
Code snippet:
a = [0, 1, 2, 3]
for a[0] in a:
print(a[0])
Code snippet:
class Demo:
def __init__(self):
self.a = 1
self.__b = 1

def display(self):
return self.__b

obj = Demo()
print(obj.__b)
Code snippet:
X = 2+9*((3*12)-8)/10
Code snippet:
re.split(r'(a)(t)', 'Maths is a difficult subject')
Code snippet:
aTuple = (100, 200, 300, 400, 500)
aTuple[1] = 800
print(aTuple)
Code snippet:
class A: 
def __init__(self, i=100):
self.i=i
class B(A):
def __init__(self,j=0):
self.j=j
def main():
b= B()
print(b.i)
print(b.j)
main()
Code snippet:
a = ['hat', 'mat', 'rat']
'rhyme'.join(a)
Code snippet:
class Count:
def __init__(self, count=0):
self.__count=count
a=Count(2)
b=Count(2)
print(id(a)==id(b), end = '' '')

c= ''hello''
d= ''hello''
print(id(c)==id(d))
Code snippet:
first = bool('False')
second = bool()
print(str(first) + " " + str(second))