Question: 13) Complete the following table with the correct Python script (3 mark) Rewrite the following code fragment using for loop. i=100 while(i>0): print(i) i=i-3
13) Complete the following table with the correct Python script (3 mark) Rewrite the following code fragment using for loop. i=100 while(i>0): print(i) i=i-3 Rewrite the following code after removing all syntactical errors with each correction underline. def pmu(): x=int(input("Enter a number:")) if(abs(x)=x): number") else: pmu() print("entered a positive x=-1 print("number not positive")
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
