Python Questions
5.33K subscribers
1 photo
7 links
Tasks for Beginners, Interview Questions, Regular expressions, simple coding problems, Quiz etc.

Useful Resources — »»» @python_resources_iGnani
Projects for Practice — »»» @python_projects_repository
Discussion Forum — »»» @python_programmers_club
Download Telegram
def foo(x = 10, y = 15):
return(x + y, x - y)
x, y = foo(y = 20, x = 15) print(x, y) #What is the output of the following code?
Anonymous Quiz
33%
Error - arguments order
49%
35 -5
13%
35 30
5%
30 30
y, z = 10, 15;
b = c = 0;
b = y - y + z; y -= (y + z); #What is the value of b & y respectively? Please Explain?
Anonymous Quiz
19%
15, 15
46%
15, -15
10%
-15, 15
14%
Error
10%
Show me the answer
x, y, z = 5, 10, 15
z = x <= y
#What is the value of z? Explain why
Anonymous Quiz
11%
5
18%
15
34%
True
26%
False
5%
None of the above
7%
Show me the answer
print('abcefd'.replace('cd', '12'))

#What is the output of the above code?
Anonymous Quiz
28%
ab1ef2
14%
ab12ef12
4%
ab1efd
3%
abcef2
22%
abcefd
21%
None of the above
7%
Show me the answer
print("abbcabcacabb".count('abb', 2, 11))

#What is the output of the above statement? Explain this statement?
Anonymous Quiz
27%
2
23%
1
14%
0
21%
Error
14%
Show me the answer
print('xy'.isalpha())

#What is the output of the above code?
Anonymous Quiz
8%
xy
51%
True
21%
False
10%
xy.isalpha
4%
Error
6%
Show me the answer