fork download
  1. def everything_reversed(l):
  2. lst = l[::-1]
  3. for ind in range(len(lst)):
  4. lst[ind] = lst[ind][::-1]
  5. return lst
  6. if __name__ =="__main__":
  7. print(everything_reversed(["Hi", "there", "example", "one more"]))
Success #stdin #stdout 0.12s 14064KB
stdin
Standard input is empty
stdout
['erom eno', 'elpmaxe', 'ereht', 'iH']