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 more1 575
Subscribers
No data24 hours
No data7 days
-930 days
Posts Archive
1 575
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)1 575
What will be the output of the following Python code?
print("xyyzxyzxzxyy".endswith("xyy", 0, 2))
1 575
What will be the output of the following Python code?
print("xyyzxyzxzxyy".endswith("xyy"))
1 575
What will be the output of the following Python code?
print('abc'.encode())
1 575
What will be the output of the following Python code?
print("xyyzxyzxzxyy".count('xyy', -10, -1))
1 575
What will be the output of the following Python code?
print("xyyzxyzxzxyy".count('xyy', 2, 11))
1 575
What will be the output of the following Python code?
print("xyyzxyzxzxyy".count('xyy', 0, 100))
1 575
What will be the output of the following Python code?
print("xyyzxyzxzxyy".count('yy', 2))
1 575
What will be the output of the following Python code?
print("xyyzxyzxzxyy".count('yy', 1))
1 575
What will be the output of the following Python code?
print("xyyzxyzxzxyy".count('yy'))
1 575
What will be the output of the following Python code?
print("abcdef".center(10, '12'))
1 575
What will be the output of the following Python code?
print("abcdef".center(7, '1'))
1 575
What will be the output of the following Python code?
print("abcdef".center(7, 1))x
1 575
What will be the output of the following Python code?
print('*', "abcdef".center(7), '*')
1 575
What will be the output of the following Python code?
print("abcdef".center(0))
1 575
What will be the output of the following Python code?
print("abcdef".center())
1 575
What will be the output of the following Python code?
print("abc. DEF".capitalize())
1 575
What will be the output of the following Python code?
print("abc DEF".capitalize())
1 575
Suppose x is 345.3546, what is format(x, “10.3f”) (_ indicates space).
