iKostanOrg / codewars

Python3 solutions for Codewars.com problems

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix "method_complexity" issue in kyu_6/count_letters_in_string/count_letters_in_string.py

ikostan opened this issue · comments

Function letter_count has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.

https://codeclimate.com/github/ikostan/codewars/kyu_6/count_letters_in_string/count_letters_in_string.py#issue_5e96c3368a97c800010001b6