kyu_7.you_are_square package

Submodules

kyu_7.you_are_square.test_you_are_square module

Test for -> You’re a square.

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

class kyu_7.you_are_square.test_you_are_square.YouAreSquareTestCase(methodName='runTest')[source]

Bases: TestCase

Testing is_square function.

The tests will always use some integral number, so don’t worry about that in dynamic typed languages.

_classSetupFailed = False
_class_cleanups = []
test_is_square_25()[source]

25 is a square number.

Returns:

test_is_square_26()[source]

26 is not a square number.

Returns:

test_is_square_four()[source]

4 is a square number.

Returns:

test_is_square_negative_numbers()[source]

Negative numbers cannot be square numbers.

Returns:

test_is_square_negative_test()[source]

3 is not a square number.

Returns:

test_is_square_zero()[source]

0 is a square number.

Returns:

kyu_7.you_are_square.you_are_square module

Solution for -> You’re a square.

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

kyu_7.you_are_square.you_are_square.is_square(n: int) bool[source]

Determine if it’s a square number.

Parameters:

n – int

Returns:

bool

Module contents

You’re a square.