Skip to content

Instantly share code, notes, and snippets.

@sirishaditya
Created June 27, 2016 04:47
Show Gist options
  • Save sirishaditya/66b7dcddd66f54c7c850907953a4077a to your computer and use it in GitHub Desktop.
Save sirishaditya/66b7dcddd66f54c7c850907953a4077a to your computer and use it in GitHub Desktop.
PracticePython.Org-12 List Ends
def listEnds(some_list):
list_2 = []
list_2.append(some_list[0])
list_2.append(some_list[-1])
print(list_2)
some_list = input()
listEnds(some_list)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment