题解 | #计算某字母出现次数#
计算某字母出现次数
http://www.nowcoder.com/practice/a35ce98431874e3a820dbe4b2d0508b1
Remember to convert to equivalent cases for all.
This time: .lower()
chars = input().lower() key = input().lower() count = 0 for char in chars: if key == char: count += 1 print(count)