Pseudonym Generator

I've got to say, this project was pretty interesting and quite fun, it's also really easy to adapt and change! The first bit of code is what Vaughan first showed us in the book, followed by a slightly revised version, and then my own take on the project: a paint name generator.


pseudonym.py
import sys, random

print("Pseudonym Generater\n")

first = ('Baby Oil', 'Bad News', 'Big Burps', "Bill 'Beenie-Weenie'",
         "Bob 'Stinkbug'", 'Bowel Noises', 'Boxelder', "Bud 'Lite'",
         'Butterbean', 'Buttermilk', 'Buttocks', 'Chad', 'Chesterfield',
         'Chewy', 'Chigger', 'Cinnabuns', 'Cleet', 'Cornbread', 'Crab Meat',
         'Crapps', 'Dark Skies', 'Dennis Clawhammer', 'Dicman', 'Elphonso',
         'Fancypants', 'Figgs', 'Foncy', 'Gootsy', 'Greasy Jim', 'Huckleberry',
         'Huggy', 'Ignatious', 'Jimbo', "Joe 'Pottin Soil'", 'Johnny',
         'Lemongrass', 'Lil Debil', 'Longbranch', '"Lunch Money"', 'Mergatroid',
         '"Mr Peabody"', 'Oil-Can', 'Oinks', 'Old Scratch', 'Ovaltine',
         'Pennywhistle', 'Pitchfork Ben', 'Potato Bug', 'Pushmeet',
         'Rock Candy', 'Schlomo', 'Scratchensniff', 'Scut',
         "Sid 'The Squirts'", 'Skidmark', 'Slaps', 'Snakes', 'Snoobs',
         'Snorki', 'Soupcan Sam', 'Spitzitout', 'Squids', 'Stinky',
         'Storyboard', 'Sweet Tea', 'TeeTee', 'Wheezy Joe',
         "Winston 'Jazz Hands'", 'Worms')

last = ('Appleyard', 'Bigmeat', 'Bloominshine', 'Boogerbottom',
        'Breedslovetrout', 'Butterbaugh', 'Clovenhoof', 'Clutterbuck',
        'Cocktoasten', 'Endicott', 'Fewhairs', 'Gooberdapple', 'Goodensmith',
        'Goodpasture', 'Guster', 'Henderson', 'Hooperbag', 'Hoosenater',
        'Hootkins', 'Jefferson', 'Jenkins', 'Jingley-Schmidt', 'Johnson',
        'Kingfish', 'Listenbee', "M'Bembo", 'McFadden', 'Moonshine', 'Nettles',
        'Noseworthy', 'Olivetti', 'Outerbridge', 'Overpeck', 'Overturf',
        'Oxhandler', 'Pealike', 'Pennywhistle', 'Peterson', 'Pieplow',
        'Pinkerton', 'Porkins', 'Putney', 'Quakenbush', 'Rainwater',
        'Rosenthal', 'Rubbins', 'Sackrider', 'Snuggleshine', 'Splern',
        'Stevens', 'Stroganoff', 'Sugar-Gold', 'Swackhamer', 'Tippins',
        'Turnipseed', 'Vinaigrette', 'Walkingstick', 'Wallbanger', 'Weewax',
        'Weiners', 'Whipkey', 'Wigglesworth', 'Wimplesnatch', 'Winterkorn',
        'Woolysocks')

while True:

	firstName = random.choice(first)
	
	lastName = random.choice(last)
	
	print("\n\n")
	print("{} {}".format(firstName, lastName))
	print("\n\n")
	
	try_again = input("\nPress ENTER to go again, or 'n' to QUIT.     ")
	if try_again.lower() == "n":
		break
			
input("\n\n\n\nPress ANY KEY to exit.")

Revised Code

pseudonym_revised.py
"""Generate funny names by taking a first name and last name and combining them"""
import sys
import random

def main():
	"""Choose two names at random and print on screen"""
	print("Funny pseudonym generator\n")
	
	first = ('Baby Oil', 'Bad News', 'Big Burps', "Bill 'Beenie-Weenie'",
		 "Bob 'Stinkbug'", 'Bowel Noises', 'Boxelder', "Bud 'Lite'",
		 'Butterbean', 'Buttermilk', 'Buttocks', 'Chad', 'Chesterfield',
		 'Chewy', 'Chigger', 'Cinnabuns', 'Cleet', 'Cornbread', 'Crab Meat',
		 'Crapps', 'Dark Skies', 'Dennis Clawhammer', 'Dicman', 'Elphonso',
		 'Fancypants', 'Figgs', 'Foncy', 'Gootsy', 'Greasy Jim', 'Huckleberry',
		 'Huggy', 'Ignatious', 'Jimbo', "Joe 'Pottin Soil'", 'Johnny',
		 'Lemongrass', 'Lil Debil', 'Longbranch', '"Lunch Money"', 'Mergatroid',
		 '"Mr Peabody"', 'Oil-Can', 'Oinks', 'Old Scratch', 'Ovaltine',
		 'Pennywhistle', 'Pitchfork Ben', 'Potato Bug', 'Pushmeet',
		 'Rock Candy', 'Schlomo', 'Scratchensniff', 'Scut',
		 "Sid 'The Squirts'", 'Skidmark', 'Slaps', 'Snakes', 'Snoobs',
		 'Snorki', 'Soupcan Sam', 'Spitzitout', 'Squids', 'Stinky',
		 'Storyboard', 'Sweet Tea', 'TeeTee', 'Wheezy Joe',
		 "Winston 'Jazz Hands'", 'Worms')

	last = ('Appleyard', 'Bigmeat', 'Bloominshine', 'Boogerbottom',
		'Breedslovetrout', 'Butterbaugh', 'Clovenhoof', 'Clutterbuck',
		'Cocktoasten', 'Endicott', 'Fewhairs', 'Gooberdapple', 'Goodensmith',
		'Goodpasture', 'Guster', 'Henderson', 'Hooperbag', 'Hoosenater',
		'Hootkins', 'Jefferson', 'Jenkins', 'Jingley-Schmidt', 'Johnson',
		'Kingfish', 'Listenbee', "M'Bembo", 'McFadden', 'Moonshine', 'Nettles',
		'Noseworthy', 'Olivetti', 'Outerbridge', 'Overpeck', 'Overturf',
		'Oxhandler', 'Pealike', 'Pennywhistle', 'Peterson', 'Pieplow',
		'Pinkerton', 'Porkins', 'Putney', 'Quakenbush', 'Rainwater',
		'Rosenthal', 'Rubbins', 'Sackrider', 'Snuggleshine', 'Splern',
		'Stevens', 'Stroganoff', 'Sugar-Gold', 'Swackhamer', 'Tippins',
		'Turnipseed', 'Vinaigrette', 'Walkingstick', 'Wallbanger', 'Weewax',
		'Weiners', 'Whipkey', 'Wigglesworth', 'Wimplesnatch', 'Winterkorn',
		'Woolysocks')

	while True:
		firstName = random.choice(first)		
		lastName = random.choice(last)
		
		print("\n\n")
		print("{} {}".format(firstName, lastName))
		print("\n\n")
		
		try_again = input("\nPress ENTER to go again, or 'n' to QUIT.")
		if try_again.lower() == "n":
			break
				
	input("\nPress ENTER to exit.")

if __name__ == "__main__":
	main()

Idea: Paint Name Generator

paint_colours.py
"""Generate funny paint colours"""
import sys
import random

def main():
	"""Choose two things from each list at random and print on screen"""
	print("Funny pseudonym generator\n")
	
	pre = ('Baby', 'Tasty', 'Crispy', "Hot", 'Lite', 'Cool', 'Fired Up',
	'Darkish', 'Not', 'Minty', 'Leafy', 'Wooden', 'Indian', 'American',
	'Raw', 'Pale', 'Sick', 'Deadly', 'Illegl', 'Plant')

	post = ('Fire', 'Letter', 'Green', 'Carrot', 'Red', 'Pork', 'Drugs',
	'Plant')

	while True:
		randPre = random.choice(pre)		
		randLst = random.choice(post)
		
		print("\n\n")
		print("{} {}".format(randPre, randLst))
		print("\n\n")
		
		try_again = input("\nPress ENTER to go again, or 'n' to QUIT.")
		if try_again.lower() == "n":
			break
				
	input("\nPress ENTER to exit.")

if __name__ == "__main__":
	main()