Disclaimer: I'm trying to write one of my first classes in python, so please make any criticism constructive please.
#!/usr/bin/python
from optparse import OptionParser
class Permutate:
email_dict = {}
email_provider = (
'@gmail.com',
'@aol.com',
'@yahoo.com'
)
def __init__(self, fname, lname):
'''
vars:
[fname] - first name of the permutation
[lname] - last name of the permutation
[email_combination] - first and last name
'''
self.fname = fname
self.lname = lname
self.email_combination = email_combination
'''
compute_first_last():
email_combination = <string> + <string> + <string>
computes the first name and last name combination plus and email provider.
Loop through all combinations of first + last + email_provider while the value *is u
A single combination looks like <fname>.<lname>@<email_provider>
Thank you