5 ms·
Huh? >> a.index("P") => 14 >> b.index("P") => 15 >> c.index("P") => 218 >> d.index("P") => 40
by sandal 16y ago
Huh?
>> a.index("P")
=> 14
>> b.index("P")
=> 15
>> c.index("P")
=> 218
>> d.index("P")
=> 40
- olalonde 16y agoSry, bug in my code, I only tested the first 2 strings.