Created
May 13, 2017 07:11
-
-
Save odanga94/a7f3541eba8f530d41a7168a56309327 to your computer and use it in GitHub Desktop.
PracticePython/Exercise12
This file contains hidden or 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
a = [0, 5, 10, 15, 20, 25, 75] | |
def new_list(a): | |
new = [] | |
new.append(a[0]) | |
new.append(a[len(a) - 1]) | |
print(new) | |
new_list(a) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment