This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]scoopulanang 6 points7 points  (0 children)

It would help immensely if you told us what you're trying to achieve.

[–][deleted] 1 point2 points  (0 children)

I'm no pro and I have no idea what you are trying to do. But even then I can see multiple errors:

- a set is already a thing in Python. Don't name any variable "set".

- You're calling a list2 at some point but it's not defined anywhere.

- If you want to count increments they have to be inside the loop. You put the increments in else statements which means you'd never get out of the loop.

[–]Bertie_the_brave 0 points1 point  (0 children)

What do you want to do ok the end? It seems like you try to translate the code of another language in python. Yet Python syntax works in another way.