https://github.com/axtloss/overengineered-hello-world
a stupidly overengineered way to print out "Hello world" in python
https://github.com/axtloss/overengineered-hello-world
fun hello-world python unnecessary useless
Last synced: 9 months ago
JSON representation
a stupidly overengineered way to print out "Hello world" in python
- Host: GitHub
- URL: https://github.com/axtloss/overengineered-hello-world
- Owner: axtloss
- Created: 2021-08-22T22:05:36.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-12-31T23:35:26.000Z (over 1 year ago)
- Last Synced: 2025-06-17T08:05:28.942Z (12 months ago)
- Topics: fun, hello-world, python, unnecessary, useless
- Language: Python
- Homepage:
- Size: 199 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## overengineered-hello-world
a stupidly overengineered way to print out "Hello world" in python
# How does it work?
___Well___
- First we read the string "Hello World!" from helloworld.png
- then we decode that to utf-8
- after that we get a list of all the printable carachters in python as an array
- we split the "Hello World!" from the image earlier into an array, seperated by each carachter: ["H","e","l","l","o"," ","W,"o","r","l","d","!"]
- then each letter in the array gets the index of the corresponding carachter in the array of all printable carachters, the new array looks like that now:
[72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100, 33]
- We convert this back into Letters, using the same printable carachter index as before, also in an array:
["H","e","l","l","o"," ","W,"o","r","l","d","!"]
- then this array is read into a string
- this string gets printed using the "echo" util from bash with os.system