docx, 23.54 KB
docx, 23.54 KB
Beautifully formatted, 7-page Word Document. Includes four comprehensive activities with complete solutions.

Learning outcomes:
- Explain the purpose of the chr() and ord() Python functions
- Use chr() and ord() functions to convert to and from ASCII and decimal representations
- Write a Python program to randomly generate a five character key

Starter
Use the Python Shell to learn how Python's built-in functions chr() and ord() work.

Task 1
Use chr() and ord() functions to calculate the ASCII values and characters of the given keys.

Task 2
Sort the algorithm provided into the correct order. Students can stick the solution into a logbook.

Task 3
Use the above algorithm to sort the Python code into correct order.

Extension
Students apply what they have learned in this lesson to complete Task 3 of the Controlled Assessment (Text Encryption).

Reviews

Something went wrong, please try again later.

This resource hasn't been reviewed yet

To ensure quality for our reviews, only customers who have purchased this resource can review it

Report this resourceto let us know if it violates our terms and conditions.
Our customer service team will review your report and will be in touch.