fork download
  1. def f(slv):
  2. newslv=''
  3. for i in range(len(slv)-1,-1,-1):
  4. newslv+=slv[i]
  5. return newslv
  6. print(f('tima'))
  7. slova='tima depresivnuy huy'
  8. slova1=slova.split()
  9. for slovo in slova1:
  10. print(f(slovo),end=' ')
Success #stdin #stdout 0.02s 9984KB
stdin
Standard input is empty
stdout
amit
amit yunviserped yuh