Tihomir111

Untitled

Sep 18th, 2021
571
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. first = input()
  2. second = input()
  3. last = first
  4. for sys in range(len(first)):
  5.     left = second[:sys + 1]
  6.     right = first[sys + 1:]
  7.     sum = left + right
  8.     if sum == last:
  9.         continue
  10.     print(sum)
  11.     last = sum
  12.  
RAW Paste Data