-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmy_code.py
34 lines (21 loc) · 1.21 KB
/
my_code.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Complete the functions below to manipulate the given list.
# Be sure to follow the directions carefully to be sure your results match the expected results.
def append_to_list(): #Be sure to choose the parameter for your function
# User code goes here
return # Return your new list
def insert_to_list(): #Complete this function to insert 12 in the [2] position and return the new list.
return
def remove_from_list(): # Complete this function to remove 8 from the list and return the new list.
return
def sort_ascending(): #Complete this function to sort the list from low to high.
return
def check_list(): #Complete this function to check if 33 is in the list. Return True if it is and False if it is not.
return
if __name__ == '__main__':
# Use the print statements below to check your code. Do not change the starter_list or your program will not pass the automated test.
starter_list = [3, 18, 2, 75, 8, 33]
#print(append_to_list(starter_list))
#print(insert_to_list(starter_list))
#print(remove_from_list(starter_list))
#print(sort_ascending(starter_list))
#print(check_list(starter_list))