Summary: for loops, ranges, code blocks, “”.join, additional random module methods

Final project is a (console) password generator  

… which I wrote two ways. the first way is more elegant but doesn’t use any for loops which was the topic for the day. the second uses a for loop as well as random int indices to reference the original lists.

In her solution, she already uses random.choice() on the easy version, so if random.choice is on the table, may as well use random.choices() — especially since the “hard” mode already converts to a list and has random.shuffle in play. My rewrite only uses for num in range in order to get the length of the lists, which ironically uses a len() inside.  So I’m happy with mine. I started with a list from the outset, and reviewed using “”.join() once I was satisfied with the list as such.

Will be 6 tomatoes after finishing a couple of other things. I went way over tomatoes yesterday but it wasn’t related to coding, so… not included.

Also did the first 5 lessons of the zombie solidity tutorial for side kicks. cryptozombies.io