Created
June 27, 2016 04:47
-
-
Save sirishaditya/66b7dcddd66f54c7c850907953a4077a to your computer and use it in GitHub Desktop.
PracticePython.Org-12 List Ends
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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