0

I tried to print out all the positions with male and female passengers but failed. Does anyone know how else i should do?

https://code.sololearn.com/cgqcgRx4pV0A/?ref=app

28th Feb 2022, 6:58 AM
Lenoname
5 ответов
0
Jay Matthews it just prints out: [’male’,’female’,’male’] then <generator object………
28th Feb 2022, 7:24 AM
Lenoname
0
Jay Matthews i want the positions of the given str not the order
28th Feb 2022, 7:26 AM
Lenoname
0
Jay Matthews male and female part yes not the <generator….part
28th Feb 2022, 7:35 AM
Lenoname
0
Jay Matthews I changed the code and now i get the right output but on the second output i get extra unknown positions, if u notice why please do tell. https://code.sololearn.com/cgqcgRx4pV0A/?ref=app
28th Feb 2022, 8:52 AM
Lenoname
0
Jay Matthews Might be indentation mistake
28th Feb 2022, 5:56 PM
Lenoname