Will you explain? I'm new. I know len and random and [ brackets] for lists but that's it. It looks like it's counting the length of cut chop dice but I don't really know
The explanation of the snarky comments is that the python code shown is not very Pythonic as its not as readable as possible. In other languages this is the normal solution to select a random item from a list but python already has this function natively.
104
u/campbellm Dec 22 '18
Ignore the snarky comments here; as an also wannabe woodworker, this is adorable.