Jan-21-2017, 02:46 PM
Also, take a look at how much code you're repeating. That's just a recipe for errors. I would put all the letters in a dict:
letters = {letter: 0 for letter in 'abcdefghijklmnopqrstuvwxyz'}Then you can loop over the letters and do the count update code once. You can also pass the dict as a parameter to your functions, solving the problem that sparkz_alot pointed out.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures