Practice Python

Beginner Python exercises

28 May 2014

Password Generator

Exercise 16 (and Solution)

Write a password generator in Python. Be creative with how you generate passwords - strong passwords have a mix of lowercase letters, uppercase letters, numbers, and symbols. The passwords should be random, generating a new password every time the user asks for a new password. Include your run-time code in a main method.

Extra:

Discussion

There are no new topics this week, but you will need to use Python’s random module, described in this post.

Happy coding!

Forgot how to submit exercises?

Share the fun!


comments powered by Disqus