Re: [Tutor] EXTERNAL: fix overwriting issue

2018-02-06 Thread Joaquin Henriquez
Hi This is a python forum and we try to help as much as possible. It wpuld be usefull from your side to put the python code you are trying to run an explain whats is wrong and what you are trying to do. BR -Original Message- From: Tutor [mailto:tutor-bounces+joaquin.henriquez=counte

Re: [Tutor] EXTERNAL: Summing arrays

2017-03-16 Thread Joaquin Henriquez
>def sum2(N): >b = np.arange(1,N+1,1) > mylist = [ ] > for i in b: >terms = 2*(1+3**(i-1)) > a = mylist.append[terms] > return np.sum(mylist) >print(sum2(N=50)) You have an error such as: a = mylist.append(terms) ___ Tutor m