Jul-03-2018, 01:06 PM
def ick_count(text): return len(text) - sum([text.count(digit) for digit in string.digits])
Output:count_func took 6.773 sec
smart_count_digits took 0.908 sec
ick_count took 0.550 sec
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures