Created
November 30, 2019 11:33
-
-
Save ShadowofZeus/5b98199704e8284a33b92d65989aa5d0 to your computer and use it in GitHub Desktop.
List Ends
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
def welcome(): | |
return(print("Welcome to Shadow's Coding Studio")) | |
def get_values(): | |
capture_list=[] | |
size_of_list=int(input("Enter a number for the list size: ")) | |
for i in range(1,size_of_list+1): # new for me!! | |
capture_var=int(input("Enter a number for your list: ")) | |
capture_list.append(capture_var) | |
print(capture_list) | |
list_ends(capture_list) | |
def list_ends(list_racho): | |
newlist=[] | |
newlist.append(list_racho[0]) | |
newlist.append(list_racho[-1]) | |
print(newlist) | |
####################### $$$$$$$$$$$$$$$$$$$ @@@@@@@@@@@@@@@@ ######################### | |
welcome() | |
get_values() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment