I'm trying to make a game using pygame but I'm having problems with lists inside other lists.
inside the class of Enemy/Enemy 2 i have the following code:
ei = [[Enemy(), Enemy()][Enemy2()]]
for wave in ei:
if self in wave:
print(ei.index(self))
The object is inside the list, I have checked by printing out ei
in bulk, however this code just returns 'None'.
I tried to print('True')
instead of the index, however it still prints None