Calculator Text
Challenge Difficulty: Medium | Estimated completion time: ~20 minutes
At school, we used to play with our calculators and send each other secret messages. The trick was to enter a special number and turn the calculator upside-down.
Like saying hello, you’d type in the calculator 07734 and turn it upside down:

Given a number, create a function that converts it into a word by turning the integer 180 degrees around.
Examples
turnCalc(707)
output = "LOL"
turnCalc(5508)
output = "BOSS"
turnCalc(3045)
output = "SHOE"
turnCalc(07734)
output = "HELLO"Number to Letter Mapping
| number | letter |
|---|---|
| 1 | I |
| 2 | Z |
| 3 | E |
| 4 | H |
| 5 | S |
| 6 | G |
| 7 | L |
| 8 | B |
| 9 | - |
| 0 | O |
Notes
- Convert to uppercase words.
- Ignore dots.
Solution
Python
Output