I get this python error: unindent does not match any outer indentation level, and a red bar appears where "RIGHT HERE RED" is.., keep in mind that this is just a fraction of the entire program but i dont know where the spacing error occurs... pleeeaaase i beg you and thank you!!!

this is the area of my code that it appears

while len(players)<max_players:
    print()
    print("New Character")
    print()
    #create empty profile dictionary
   profile = {'Name':"",'Desc':"",'Race':"",'Gender':"",'Muscle':0, #<---RIGHT HERE RED
              'Brainz':0,'Speed':0,'Charm':0,'life':0,'magic':0,
              'prot':0,'gold':0,'inventory':[]}
   #prompt user for user-defined information(name,desc,gender,race)
   name=input('What is your name? ')
   desc=input('Describe your self: ')
   gender=gender.lower()
   if gender.startswith('f'):

That is exactly where the problem is look directly above that line buddy :).

That is exactly where the problem is look directly above that line buddy :).

Where i dont see an issue?

Does profile or anything below it match the spacing above it? Looks a little off to me. The r in profile is under the # in the line above it.

You need to keep your indentation spacing consistent. Like predator78 pointed out, you are switching from 4 spaces to 3 spaces in the same block of code. Not good!

Most Python IDEs will assist you on obvious mistakes like that.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.