13 lines
232 B
Python
13 lines
232 B
Python
class Worker:
|
|
def build(self, value: int) -> int:
|
|
return value + 1
|
|
|
|
|
|
def helper(value: int) -> int:
|
|
return value * 2
|
|
|
|
|
|
def build_twice(value: int) -> int:
|
|
worker = Worker()
|
|
return helper(worker.build(value))
|