DEV Community

Discussion on: Daily Challenge #29 - Xs and Os

Collapse
 
colinb profile image
Colin Bounouar

Is there a reason why you prefer a for loop over a single call to lower on the str, and then returning lowered.count('x') == lowered.count('o') ?