Update 'Zadanie-4/poly.py'
This commit is contained in:
parent
0947fadbdf
commit
fc718efb6c
@ -11,7 +11,7 @@ class Polynomial:
|
|||||||
|
|
||||||
def __pow__(self, n):
|
def __pow__(self, n):
|
||||||
result = self
|
result = self
|
||||||
for i in range(n):
|
for _ in range(n):
|
||||||
result = Polynomial.multiply(result, result)
|
result = Polynomial.multiply(result, result)
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user