Gallery
Triathlon
Share
Explore

icon picker
04-stage 3

stage 3 : Create code statements in Python

Read the list of items identified for Input, Process and Output and then the pseudocode statements
Open the main.py program file.
Use comments to set out the sections of the code including declarations, input, process and output.
Use your pseudocode you wrote in the pseudocode.md file, now turn the pseudocode statements into comment lines.
Use the comment lines to code your program. Refer to the Code Clips section 👇 below, you can find, copy and paste the code you need.
Run the program using the test data and run the test to see if the program gets the example output.

Task 3 🧑‍💻 complete the program code

You will see that the code in main.py is incomplete
Not all the pseudocode has been implemented and some of the IPO requirements are not met.
Open the pseudocode.md file to remember what the complete design should do.
Use the Code Clips section 👇 below to copy and paste the missing code.
Once the program is complete, run, test and debug!
Work with a partner or tutor to check you have completed this task

test data / sample output

Enter swimming points: 12
Enter cycling points: 10
Enter running points: 14

Swim, cycle, run total: 36

next

check your work before submitting to your teacher/tutor
Share
 
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.