You can re-utilize the Radon library that we use for our assignments to calculate the cyclomatic complexity of your code (the "Intricacy" value on the leaderboard)
simply go into anaconda prompt, change directory to the one in which your script is and write:
cc yourScriptName.py -a
and it will compute the average cc of your python script.
As far as Efficiency goes, things are a bit more complicated, since if you want to utilize the assignments libraries you're gonna have to write test cases
to test your code against all by yourself, which is a bit of a hassle considered the amount of different programs we have assigned;
I instead recommend you to take a look at python profiling libraries such as timeit, that allow you to measure the speed of statements, so you can get a feeling
for which method is more optimized than the other, you can also read a bit into Time Complexity so you know which algorithms are the most optimized/how your algorithm
should behave when faced with a certain input.
Lastly to check about errors I recommend you to use the spyder debugger by setting breakpoints in your code, running it line by line and checking the variable explorer
to see if everything is behaving as expected.