Write, save, and run a Python program
- Ask the user to enter a number of grams. Your program convertsthat to whole tones, then whole kilograms and whatever is left isin grams. It prints the entered grams , tones , kilograms and theremaining grams.
| Â Â Â Â 4 marks |
for i in range(0,10): print(i) 2Â Â Â what is wrong inthe above python code? display your explanation using printstatement. | - mark
|
3   insert thefollowing comments into your program of part      (1). make sure the comment spans 3lines of your code. This program converts, the number of seconds you haveentered into whole hours, then the wholeminutes and whatever.. |     2 mark |
mark = mark1+ mark2+ Â Â Â Â Â Â Â Â Â Â Â mark3 + mark4 4Â Â what is wrong in theabove python code? display your explanation using printstatement. | - mark
|
5 The output of the program shouldlook similar to the output of a sample run shown below. | Â Â Â Â Â 2 marks |
| 10 marks total |
#Sample run
Enter the weight in grams: 217123935
Total 217123 tones is 217 tones, 123 kilograms, 935 grams.
(you provide your answer for task 3)
This program converts,
the number of seconds you have entered
into whole hours, then the whole minutes and whatever..
(you provide your answer for task 4)
Process finished with exit code 0
This code should display the above answer