names.py
def rand_name(self, gender='a'):
        """A method to return a random name. Genders of names are (M)asculine, (F)eminine, or (N)eutral.
        Anything else chooses from all three categories"""
        if gender.capitalize() == 'M':
            return random.choice(self.masc_names)
        elif gender.capitalize() == 'F':
            return random.choice(self.femme_names)
        elif gender.capitalize() == 'N':
            return random.choice(self.neutral_names)
        else:
            return random.choice(self.masc_names + self.femme_names + self.neutral_names)
A method to return a random name. Genders of names are (M)asculine, (F)eminine, or (N)eutral.
        Anything else chooses from all three categories
A method to return a random name. Genders of names are (M)asculine, (F)eminine, or (N)eutral.
Anything else chooses from all three categories
A method to return a random name . Genders of names are ( M ) asculine ( F ) eminine or ( N ) eutral . Anything else chooses from all three categories
def rand_name(self, gender='a'):
        if gender.capitalize() == 'M':
            return random.choice(self.masc_names)
        elif gender.capitalize() == 'F':
            return random.choice(self.femme_names)
        elif gender.capitalize() == 'N':
            return random.choice(self.neutral_names)
        else:
            return random.choice(self.masc_names + self.femme_names + self.neutral_names)
def rand_name ( self , gender = 'a' ) : if gender . capitalize ( ) == 'M' : return random . choice ( self . masc_names ) elif gender . capitalize ( ) == 'F' : return random . choice ( self . femme_names ) elif gender . capitalize ( ) == 'N' : return random . choice ( self . neutral_names ) else : return random . choice ( self . masc_names + self . femme_names + self . neutral_names )
A method to return a random name.
A method to return a random name .
"""A method to return a random name. Genders of names are (M)asculine, (F)eminine, or (N)eutral.
        Anything else chooses from all three categories"""
self
gender