Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- copyFrom = ['a', 'b', 'c', 'd', 'e', 'f']
- copyTo = [1,2,3]
- last = None
- for i in range(len(copyFrom)):
- if i < len(copyTo):
- print copyFrom[i]
- last = i
- else:
- print copyFrom[last]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement