Saved Bookmarks
| 1. |
Rewrite the following code fragments : (a) using for loop x=50 while (x>0): print(x) x-=3 (b) using while loop for x in range(5,23): if x%3 ==0: print(x) |
|
Answer» python language.Explanation:a) for x in RANGE(50,0,-3): print xb) x=5while(x<23): if(x%3==0): print x x = x+1Please let me know if you want to UNDERSTAND ANYTHING. |
|