diff options
Diffstat (limited to 'challenge-107/lubos-kolouch/python/ch-2.py')
| -rw-r--r-- | challenge-107/lubos-kolouch/python/ch-2.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/challenge-107/lubos-kolouch/python/ch-2.py b/challenge-107/lubos-kolouch/python/ch-2.py new file mode 100644 index 0000000000..b71e9c5358 --- /dev/null +++ b/challenge-107/lubos-kolouch/python/ch-2.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +import inspect + + +class Calc: + def add(self): + pass + + def mul(self): + pass + + def div(self): + pass + + +# Get all methods in class Calc +methods = inspect.getmembers(Calc, predicate=inspect.isfunction) +for method in methods: + print(method[0]) |
