Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = [5, 10, 15, 20, 25]
- def firstlast(list):
- newlist = []
- newlist.append(a[0])
- newlist.append(a[len(a)-1])
- return newlist
- print(firstlast(a))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement