Skip to content

Create an empty list called my_list. Append the following elements to my_list: 10, 20, 30, 40. Insert the value 15 at the second position in the list. Extend my_list with another list: [50, 60, 70]. Remove the last element from my_list. Sort my_list in ascending order. Find and print the index of the value 30 in my_list.

Notifications You must be signed in to change notification settings

Emma-coder-dev/Week-Two-Assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Week-Two-Assignment

Create an empty list called my_list. Append the following elements to my_list: 10, 20, 30, 40. Insert the value 15 at the second position in the list. Extend my_list with another list: [50, 60, 70]. Remove the last element from my_list. Sort my_list in ascending order. Find and print the index of the value 30 in my_list.

About

Create an empty list called my_list. Append the following elements to my_list: 10, 20, 30, 40. Insert the value 15 at the second position in the list. Extend my_list with another list: [50, 60, 70]. Remove the last element from my_list. Sort my_list in ascending order. Find and print the index of the value 30 in my_list.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages