Fun Password Generator | Python Programming Experiment | Python Version 3.7.6
The IDE called IDLE comes with Python, when you download it.
Download latest python - https://www.python.org/downloads/
What is __pycache__ - A way for the computer to simplify and "perfect" your messy code for max efficiency, possibly removing redundancy, ByteCode.
Why range(0,len(alpha)-1)
- len counts the elements in a set, list, array, etc. because I am counting from 0 to the length with my random assignment I will get 'out of bounds' with randint. This occurs because I am counting from zero (0) so a set(list whatevs) being measured by len will count the objects in that list and the number 0. Example below.
a = ['la', 'di', 'da']
len(a) == 3
range(0,len(a)) would be equal to 0,1,2,3 this is four (4) numbers, which is not representative of the size (len) of the set(list, it's a list, I know)
BTW there is a difference between sets, lists, arrays, and similar concepts buuuuut that is for another day. Still go and research it yourself!
SOURCES:
What is __pycache__ - https://stackoverflow.com/questions/16869024/what-is-pycache
How to download IDLE - https://www.youtube.com/watch?v=WTYtACWBGjw
Where to get IDLE - https://realpython.com/python-idle/
What is ByteCode - https://en.wikipedia.org/wiki/Bytecode
What is an int - https://en.wikipedia.org/wiki/Integer_(computer_science)
random.randint - https://docs.python.org/3/library/random.html
single vs double equal sign
- http://net-informations.com/python/iq/equal.htm
- https://www.quora.com/What-is-the-difference-between-a-double-equal-sign-and-an-is-in-Python
Set Theory
- https://en.wikipedia.org/wiki/Set_theory
- https://plato.stanford.edu/entries/set-theory/ #tech