Simple python program that returns a random username that is generated using a name retrieved from uinames.com.
- Requests - Used to make requests to uiname.com api to retrieve first name and last name.
- String - Used the
string.digit
element to create a list of numbers. - Random - Used to call the
random.choice()
function to choose a random number.
- Include 'username_generator.py' to your project structure.
- Add '
from username_generator import create_username
' to your program. - Call '
create_username()
' function when you want get a username.