Question: PYTHON PYTHON What will be the value of x when passed to the function in the following code?Blank 1 def myfunc(text, x): num = 1
What will be the value of x when passed to the function in the following code?Blank 1 def myfunc(text, x): num = 1 while num > 0: num = num - 1 print(x,num) X = 100 if (x > 2): X = X*1; if (x > 4): X = 0; if (x > 2): x = x*1; if (x > 4): x = 0; if (x > 2): X = X*1; if (x > 4): X = 10; myfunc('Hello', X+1) Blank 1 Add your
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
