diff --git a/22-functions/javoblar-22-01.py b/22-functions/javoblar-22-01.py index fe81cca..dc307f9 100644 --- a/22-functions/javoblar-22-01.py +++ b/22-functions/javoblar-22-01.py @@ -19,3 +19,11 @@ def multiply(*sonlar): print(multiply(4, 5, 6)) + +# or +import math + +def kopaytma(*sonlar): + return math.prod(sonlar) + +print(kopaytma(4,5,6))