omega-rosetta
aien-dev/omega-rosetta
Brought by drakestapleton
omega-rosetta / tasks / base64-encode-data / oracle.py
| 1 | # Independent reference for "Base64 encode data" (Python 3, standard library only). |
| 2 | # expected.txt is this program's stdout; omc never produced it. |
| 3 | import base64 |
| 4 | for s in ['M', 'Ma', 'Man', 'Hello, World!', 'To err is human, but to really foul things up you need a computer.\n -- Paul R. Ehrlich']: |
| 5 | print(base64.b64encode(s.encode()).decode()) |