Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def sequence_1():
- th = []
- for i in range(10):
- th.append(i)
- print i+sum(th)
- def sequence_2():
- a = lambda n: (((n-1)*(n+2))/2)
- for i in range(1, 11):
- print a(i)
- #print the same things
- sequence_1()
- sequence_2()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement