Skip to main content
The 2026 Annual Developer Survey is live— take the Survey today!

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

7
  • 16
    You want to start at the second element, so use list[1:]. Commented Nov 5, 2016 at 21:21
  • 4
    Don't you need [1:] ? Commented Nov 5, 2016 at 21:21
  • 3
    " ".join(lst[1:]) to make Transfer complete Commented Nov 5, 2016 at 21:23
  • @cricket_007 is that an alternative of doing .split( " ") [1:]? Commented Nov 5, 2016 at 21:25
  • Split returns a list. Slicing returns a list. String Joining returns a string, so no, it's the inverse, not alternative Commented Nov 5, 2016 at 21:29

lang-py