Assignment 3

Create a to-do

davychis_todo_list=['wake up', 'pray','brush teeth','clean' ,'wash', 'eat','bath','binge watch','read']
davychis_todo_list[6]= 'cook'
print(davychis)
#output: ['wake up', 'pray', 'brush teeth', 'clean', 'wash', 'eat', 'cook', 'binge watch', 'read']

davychis_todo_list.append('sleep')
print(davychis_todo_list)
#output: ['wake up', 'pray', 'brush teeth', 'clean', 'wash', 'eat', 'cook', 'binge watch', 'read', 'sleep']

davychis_todo_list.remove('wash')
print(davychis_todo_list)
#output:['wake up', 'pray', 'brush teeth', 'clean', 'eat', 'cook', 'binge watch', 'read', 'sleep']        

davychis_todo_list.pop(-4)
print(davychis_todo_list)
#output:['wake up', 'pray', 'brush teeth', 'clean', 'eat', 'binge watch', 'read', 'sleep']

del davychis_todo_list[2]
print (davychis_todo_list)
#output:['wake up', 'pray', 'clean', 'eat', 'binge watch', 'read', 'sleep']


------------------------------------------------------------------------------
group_of_numbers=[17 ,23 ,19 ,48 ,32 ,87 ,12 ,28 ,86 ,12 ,60]
group_of_numbers.reverse()
print(group_of_numbers)
#output:[60, 12, 86, 28, 12, 87, 32, 48, 19, 23, 17]

group_of_numbers.sort()
print(group_of_numbers)
#output:[12, 12, 17, 19, 23, 28, 32, 48, 60, 86, 87]


group_of_numbers=group_of_numbers[:-5]
print(group_of_numbers)
#output:[12, 12, 17, 19, 23, 28]

random_numbers=[21,67,34,57,78]
group_of_numbers.extend(random_numbers)
print(group_of_numbers)
#output:[12, 12, 17, 19, 23, 28, 21, 67, 34, 57, 78]