Python Forum

Full Version: TabError:
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm getting an error relate to the line print('outcomeGroupList:',outcomeGroupList)

The error says TabError: inconsistent use of tabs and spaces in indentation

#set the root group id
rootOutcomeGroup = canvas.getRootOutcomeGroup(domain, token, apiType)
#print('rootOutcomeGroup:',rootOutcomeGroup)
#create a full list of outcome groups in account
outcomeGroupList = canvas.getOutcome_groups(domain, token, apiType)
#create a full list of outcomes in account
outcomeList = canvas.getOutcomes(domain, token, apiType)
print('outcomeGroupList:',outcomeGroupList)
#find outcomeID if created
foundOutcome = canvas.findOutcomeID(outcome['title'], outcomeList)
#print(outcomeGroupList)
Quote:
Error:
The error says TabError: inconsistent use of tabs and spaces in indentation
This means you mixed tabs and space somewhere in your code
I use space all the time and still receive this error. When I rewrite the line receive it again. How do you deal with this problem?
It completely blocks my coding.