May-12-2017, 04:00 PM
(May-12-2017, 03:43 PM)Low_Ki_ Wrote:Why is that a for loop, if you always return in the first iteration? Or is it an error that you currently only check the first username?for k in existing_usernames.keys(): if username[0].lower() == k.lower(): print('Username taken, prompting for new entry.') return None else: print('Username available.') return username