kyu_8.grasshopper_messi_goals_function package

Submodules

kyu_8.grasshopper_messi_goals_function.messi_goals_function module

Solution for -> Messi goals function.

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

kyu_8.grasshopper_messi_goals_function.messi_goals_function.goals(la_liga: int, copa_delrey: int, champions_league: int) int[source]

Goals function.

The function returns Messi’s total number of goals in all three leagues: - LaLiga - Copa del Rey - Champions

Parameters:
  • la_liga – int

  • copa_delrey – int

  • champions_league – int

Returns:

int

kyu_8.grasshopper_messi_goals_function.test_messi_goals_function module

Test for -> Messi goals function.

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

class kyu_8.grasshopper_messi_goals_function.test_messi_goals_function.GoalsTestCase(methodName='runTest')[source]

Bases: TestCase

Testing goals function.

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

Testing ‘goals’ function with various test data.

Verify that the function returns Messi’s total number of goals in all three leagues.

Returns:

Module contents

Grasshopper - Messi goals function.