How does len[] work?

i use len[enemies] alot but it wont work in what im doing

Use parentheses instead of square brackets. It returns in the number of items inside a list.

thanks so it is len() right?

Yes. len() is right.