Python Algorithm function

Why does the algorithm tutorials not showing on the my path? are they still relevant?

Get the formatting right, your code isn’t valid Python, won’t run at all.

Remove unrelated information. (some of your code has to do with primes)

Narrow down the problem.

Explain what your current situation is - what are you trying to do right now and why are you stuck, what do you need.

Ask specific questions that let you do the task yourself instead of “what’s wrong”. Or ask about how to approach it if you just have no idea at all where to start.

Run those tests, make some of your own, read what errors you get . Do you understand what’s being said with those errors? Try googling them, try removing parts of your code until you have only the part that produces the error message. Try adding prints in your code to find out what goes wrong as it runs.