kyu_7.help_bob_count_letters_and_digits package

Submodules

kyu_7.help_bob_count_letters_and_digits.count_letters_and_digits module

Solution for -> Help Bob count letters and digits.

Created by Egor Kostan. GitHub: https://github.com/ikostan

kyu_7.help_bob_count_letters_and_digits.count_letters_and_digits.count_letters_and_digits(s: str) int[source]

Determine how many letters and digits are in a given string.

Parameters:

s

Returns:

kyu_7.help_bob_count_letters_and_digits.test_count_letters_and_digits module

Test for -> Help Bob count letters and digits.

Created by Egor Kostan. GitHub: https://github.com/ikostan

class kyu_7.help_bob_count_letters_and_digits.test_count_letters_and_digits.CalculateTestCase(methodName='runTest')[source]

Bases: TestCase

Testing count_letters_and_digits function.

_classSetupFailed = False
_class_cleanups = []
test_count_letters_and_digits = None
test_count_letters_and_digits_0_n_ice_123(**kw)

Testing the function with various test data [with s=’n!!ice!!123’, expected=7].

Returns:

test_count_letters_and_digits_1_de_tttes_t(**kw)

Testing the function with various test data [with s=’de?=?=tttes!!t’, expected=8].

Returns:

test_count_letters_and_digits_2_(**kw)

Testing the function with various test data [with s=’’, expected=0].

Returns:

test_count_letters_and_digits_3__(**kw)

Testing the function with various test data [with s=’!@#$%^&`~.’, expected=0].

Returns:

test_count_letters_and_digits_4_u_n_d_e_r__S_C_O_R_E(**kw)

Testing the function with various test data [with s=’u_n_d_e_r__S_C_O_R_E’, expected=10].

Returns:

Module contents

Help Bob count letters and digits.