PRODUCTS
PYTHON RESOURCE PACK 7
Python Resource Pack 7 is a set of coding challenges designed to support the teaching and learning of the Python programming language.
This pack is designed for those who have some experience of programming in Python, such as completing the exercises in Resource Packs 1 - 6. It is suitable for teaching Python in schools at AS and A Level, for tutors and learners in adult learning classes or for the hobbyist learning at home.
As part of the higher-level learning and exam preparation for which the pack is designed, these challenges necessitate a greater degree of design and coding ability than the challenges in Resource Pack 6. Emphasis is placed on the system life cycle and program documentation by requiring:
- Preparatory design before attempting to code the solution to the challenge.
- Full validation to prevent the wrong type of data or incorrect values from being entered.
- The use of meaningful names for variables, functions and procedures.
- Fully commenting code.
- Full testing (both unsuccessful and successful tests, together with any corrective actions) to be recorded as a part of the solution alongside the code.
The pack is designed to support learning that has previously taken place in the classroom, via self-directed study, or by following tutorials.
The pack contains nine challenges, each consisting of:
- A pdf file with one or more coding challenges and, in some cases, supplementary extension work.
- Fully commented example solutions to the challenge or challenges and any extensions.
£90.00:
Purchase Python Resource Pack 7 in the GBCMS Online Store
The following topics are introduced:
- The // mathematical operator to perform integer division.
- The [:n] string operator to get the leftmost n characters of a string.
- The [-n:] string operator to get the rightmost n characters of a string.
- The re.sub regular expression function.
- The chr() and ord() commands to get a character from an ASCII value.
- The pow() command to calculate powers.
- The math.sqrt() command for calculating square roots.
The challenges are designed so that self-directed research will be required to complete them; they are not a cut-and-paste tutorial.
The challenges:
- Input a positive integer and determine whether or not it is a Kaprekar or Harshad Number. Includes extension work.
- Input a positive integer and output the Thue-Morse Sequence up to and including that integer. Includes extension work.
- Determine if an input string is a simple palindrome. Includes extension work to determine if a string is true palindrome.
- Input a positive Base 10 integer and convert it to any other number system between Base 2 and Base 16 inclusive. Includes extension work.
- Input a positive integer and output its unsigned Binary equivalent and whether it is Evil or Odious, explaining why.
- Implement a Stack and a Queue.
- Input a string, check if it is in the correct format to be an ISBN number, and, if it is, state if the ISBN number is valid or not.
- Input a string, check if it is in the correct format to be a credit card number, and, if it is, apply Luhn's Test to determine if the credit card number is valid or not.
- Enter three positive real numbers and determine if they form a triangle. If they do, state what type of triangle it is.
£90.00:
Purchase Python Resource Pack 7 in the GBCMS Online Store