The Complete List Of Words That Can Be Written Upside Down On A Calculator

Someone has written this small Python script to list all the words that can be typed upside down on a calculator. Like typing “7735” on the calculator to spell out “SELL” upside down.
The numbers 0-8 correspond to the alphabets O, I, Z, E, h, S, g, L, B, so any word consisting of only these letters can be similarly spelt. Found on Reddit.