Ad
Algorithms
Logic
Code
Diff
  • get_nth_words = lambda string, n: " ".join(string.split()[n-1::n]) if n>0 else ""
    • def get_nth_words(string, n): return " ".join(string.split()[n-1::n]) if n>0 else ""
    • get_nth_words = lambda string, n: " ".join(string.split()[n-1::n]) if n>0 else ""