Skip to content

Instantly share code, notes, and snippets.

@ShadowofZeus
Created November 30, 2019 11:33
Show Gist options
  • Save ShadowofZeus/5b98199704e8284a33b92d65989aa5d0 to your computer and use it in GitHub Desktop.
Save ShadowofZeus/5b98199704e8284a33b92d65989aa5d0 to your computer and use it in GitHub Desktop.
List Ends
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