Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def calcula_serie(a, b, n):
- list = []
- for c in range(n):
- fração = (1 / a**(c*b))
- list.append(fração)
- print(list)
- return sum(list)
- print(calcula_serie(2, 2, 11))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement