Python

Danielle Murray
seal-mask
.a{fill-rule:evenodd;}techdegree
Danielle Murray
Python Development Techdegree Student 1,835 Points

I can't seem to find the problem after checking over and over again. This is for My Basketball Stats tool.

Hi Guys Please could you help me, i'm really struggling to find my problem. I keep getting a Syntax error : 'return' outside function error message for line 51 and i can't seem to find a solution. and i have an indentation error on line 123 but i've changed it so many times i can't seem to find whats wrong with my code.

You're help would be much appreciated.

https://w.trhou.se/aj7hxm18hk

1 Answer

Chris Freeman
MOD
Chris Freeman
Treehouse Moderator 64,074 Points

All lines 35-51 need to be indented to be within the divide_players function.

There are many other lines that are not intended properly. Please only use 4-space indenting, and align if/elif/else statements.

Post back after you have corrected the indentation with an updated workspace link.

Tag me if you need more help. Good luck!!!