Skip to content

Instantly share code, notes, and snippets.

@B2Crypt
Created May 12, 2016 19:32
Show Gist options
  • Save B2Crypt/075e15a2995939e26d1b42927764be2a to your computer and use it in GitHub Desktop.
Save B2Crypt/075e15a2995939e26d1b42927764be2a to your computer and use it in GitHub Desktop.
An easy and simple creator of usernames based on the letters in your name.
#An easy and simple creator of usernames based on the letters in your name.
#Feel free to modify it like you want it.
firstLetters = input('How many letters from firstname?: ') #Enter how many letters we should use from the firstname of the user.
lastLetters = input('How many letters from lastname?: ') #Enter how many letters we should use from the lastname of the user.
firstName = raw_input('Firstname: ')
lastName = raw_input('Lastname: ')
username = str(lastName[:lastLetters]) + str(firstName[:firstLetters])
print username.lower()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment