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