Question: Question 1: [1 marks] what will the following code output? def doThing (n): for in range(n,0,-3); print S) doThing (9) B. 18 C. 27 D.
![Question 1: [1 marks] what will the following code output? def](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f391dc54e50_61966f391dbeb129.jpg)

Question 1: [1 marks] what will the following code output? def doThing (n): for in range(n,0,-3); print S) doThing (9) B. 18 C. 27 D. the code will not run or will run indefinitely Question 2: [1 marks] what will the following code output? def doSomethingElse (x): if x> 0: while x 1: x *- abs(x) else: X +- 1 return x print (doSomethingElse (10)) A. 10 B. -10 C.-100 the code will not run or will run indefinitely
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
