CodeWars for Python

Exes and Ohs----校验字符串中XO数量一致性

2019-04-02  本文已影响0人  Tectonic

Description:

Check to see if a string has the same amount of 'x's and 'o's. The method must return a boolean and be case insensitive. The string can contain any char.

Examples input/output:

Example

Solutions:

Practice1:

Practice1

Practice2:

Practice2

Practice3:

Practice3
上一篇下一篇

猜你喜欢

热点阅读