Advertisement
MaximTakkaTo

task9

Mar 11th, 2022
720
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1. first_string = input()
  2. second_string = input()
  3.  
  4. a = zip(str.split(first_string, " "), str.split(second_string, " "))
  5. first = ""
  6. second = ""
  7.  
  8. for i, j in a:
  9.     s = i + " "
  10.     if int(j) < 4:
  11.         first += s
  12.     else:
  13.         second += s
  14. print(first[:len(first) - 1])
  15. print(second[:len(second) - 1])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement