fork download
  1. def parkan(s):
  2. w = ""
  3. for i in range(0, len(s), 2):
  4. w = w + s[i]
  5. for i in range(1, len(s), 2):
  6. w = w + s[i]
  7. return w
  8. print(parkan("fronty"))
  9. print(parkan("tajne"))
Success #stdin #stdout 0.06s 14104KB
stdin
Standard input is empty
stdout
fotrny
tjean