Advertisement
Enrro

ejercicio 3 110433

Nov 4th, 2014
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. '''
  2. Created on 04/11/2014
  3. ejercicio 3
  4. Proven and tested on python 3.3.3
  5. @author: A01221672
  6. '''
  7. n =[1,2,3]
  8. foo = []
  9. x = 0
  10. for i in range(len(n)):
  11. x = n[i] + x
  12. foo.append(x)
  13. print(foo)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement