Question: Given the following code, what is the output? def main() : x = 20 z = mystery2(x) print(z + x) def mystery1(x)
Given the following code, what is the output?
def main() :
x = 20
z = mystery2(x)
print(z + x)
def mystery1(x) :
w = 0
while w * w < x :
w += 1
return w + 2
def mystery2(a) :
z = 0
for y in range(a) :
x = mystery1(y)
z = z + x
return z
main()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
