Gallery
Cinema World
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 psedocode statements

Task 3 🧑‍💻 complete the program code

Open the main.py program file.
Use comments to set out the sections of the code including 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.
test data
Full name: Jake Peralta
Film name: Die Hard
Number of Tickets: 2
Sample Output
Full name: Jake Peralta
Film name: Die Hard
Number of Tickets: 2


Cinema World
------------

Ticket Confirmation
Full name: Jake Peralta
Film : Die Hard
Number of Tickets: 2
Total Cost: £10
Work with a partner or tutor to check you have completed this task

next

move on the the extension page to include additional requirements
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.