A telemetry system is designed to decode channel indices entered by a technician into their uppercase alphabetic beacon identifiers. Only channel indices from 15 to 40 are valid.
Adding 50 to the channel index and then applying the function chr() generates the equivalent ASCII code for an uppercase letter.
The table shows accurate test data for a functional program.
| Input | Output |
|---|---|
| 14 | Invalid input |
| 15 | 15 maps to A |
| 30 | 30 maps to P |
| 40 | 40 maps to Z |
| 41 | Invalid input |
Below is the unfinished code for the program:
# telemetry.py
# Enter your code below
Amend the code to:
shiftVal and set it to 0shiftVal)shiftVal and assign the result to the variable codePointDo not add any additional functionality.