A program is required to convert numbers entered by the user to their alphabetic equivalent in lower case. Only numbers from 8 to 33 are valid.
Adding 89 to the number and then applying the function chr() generates the equivalent ASCII code for a lowercase letter.
The table shows accurate test data for a functional program.
| Input | Output |
|---|---|
| 7 | Invalid input |
| 8 | 8 is equal to a |
| 20 | 20 is equal to m |
| 33 | 33 is equal to z |
| 34 | Invalid input |
Below is the unfinished code for the program:
# Q01.py
# Enter your code below
Amend the code to:
offset and set it to 0offset)offset and assign the result to the variable asciiValDo not add any additional functionality.