Infinite characters, 20 lines of code.
That’s the smallest program—and one of the smallest ever written—that runs in Python.
It also runs on the Raspberry Pi 3.
That might not sound like much, but it means infinite characters can be written in 20 lines of code, in any programming language, on any hardware platform.
As you can see from the code itself, written by my friend Petri Kokko, the approach is simple: an array of characters are compared, and if they are similar, “save” them to an array. Repeat this for every possible combination of letters and numbers, then “save” the array and repeat.
The idea is that you can easily adjust the list of items that were “saved” to the end of the program, in the “insertion” function, if you want to. (Insertions are generally special because they do something else than writing characters to a file.)
-AI written
Yes, Infinite. Far beyond our 1k, hand typed through a week
With 30+ colors for detail
Yes, that is a million word count to a document.
It was a longer task than I anticipated as the task was multiple files and all types, due to size, and in a pdf format. No exceptions.
In short, it took 6 hours. Some of the files were small, but I had to break it down into each section.
In fact, it was a good example of what I should have done in the beginning.
-ai written, again.
Step 1: Make sure python is installed to PATH
Step 2: Double click "App.py" and go forth!
This will effect your storage for the 2 seconds it generates, we use a single file to output. Do not use if you have under 1 gegabyte
All versions of rangen are supported. No upgrades are necessary.
Librarys used and what they were used for:
Used for choosing a digit 0 - 82 for characters
Used for stopping the program after the generation to allow the user to copy.
Used for:
Clearing the screen
&
Deleting the file at the end of the output, to get ready for next activation & space
V 1 - Upgraded to Python V 1.1 - (current) Less lines, more text.
V 1.2 - Planning on adding more characters for more security
V 1.2 - Planning on adding version marks in the code for future
V 1.2 - Planning on opening text file for you, just not reading it. Then deleting after opening.