Advertisement
Guest User

Untitled

a guest
Sep 25th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. # Get the input
  2. leftLane = input().split(' ')
  3. rightLane = input().split(' ')
  4. # Solve the problem
  5. zipLane = []
  6. a = 0
  7. while a < len(leftLane):
  8. if leftLane[a] != None:
  9. zipLane.append(leftLane[a])
  10. if a < len(rightLane):
  11. zipLane.append(rightLane[a])
  12. a += 1
  13. while a < len(rightLane):
  14. zipLane.append(rightLane[a])
  15. a += 1
  16. carString = ''
  17. for i in zipLane:
  18. if carString == '':
  19. carString = carString + i
  20. else:
  21. carString = carString + " " + i
  22. # Print the result
  23. print(carString)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement