0
I tried to print out all the positions with male and female passengers but failed. Does anyone know how else i should do?
5 Réponses
0
Jay Matthews it just prints out: [’male’,’female’,’male’] then <generator object………
0
Jay Matthews i want the positions of the given str not the order
0
Jay Matthews male and female part yes not the <generator….part
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
0
Jay Matthews Might be indentation mistake