en
Feedback
Coding Quiz Zone

Coding Quiz Zone

Open in Telegram

✨ Part Of @OfficialCodingExpert Dive into the world of computer science, programming, and coding challenges. Sharpen your skills, expand your knowledge, and embark on a journey of continuous learning. Stay tuned for daily quizzes!

Show more
1 575
Subscribers
No data24 hours
No data7 days
-930 days
Posts Archive
class tester:
    def __init__(self, id):
        self.id = str(id)
        id="224"
 
>>>temp = tester(12)
>>>print(temp.id)

What will be the output of the following Python code?
Anonymous voting

class father:
    def __init__(self, param):
        self.o1 = param
 
class child(father):
    def __init__(self, param):
        self.o2 = param
 
>>>obj = child(22)
>>>print "%d %d" % (obj.o1, obj.o2)

What will be the output of the following Python code snippet?
Anonymous voting

string = "my name is x"
for i in ' '.join(string.split()):
    print (i, end=", ")

What will be the output of the following Python code snippet?
Anonymous voting

a = [0, 1, 2, 3]
i = -2
for i not in a:
    print(i)
    i += 1

What will be the output of the following Python code snippet?
Anonymous voting

a = [0, 1, 2, 3]
for a[0] in a:
    print(a[0])

What will be the output of the following Python code snippet?
Anonymous voting

a = [0, 1, 2, 3]
for a[-1] in a:
    print(a[-1])

What will be the output of the following Python code?
Anonymous voting

string = "my name is x"
for i in string.split():
    print (i, end=", ")

What will be the output of the following Python code?
Anonymous voting

string = "my name is x"
for i in string:
    print (i, end=", ")

What will be the output of the following Python code?
Anonymous voting

x = (i for i in range(3))
for i in x:
    print(i)
for i in x:
    print(i)

What will be the output of the following Python code?
Anonymous voting

x = (i for i in range(3))
for i in x:
    print(i)

What will be the output of the following Python code?
Anonymous voting