Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Python List Operations

Purpose: This script demonstrates common operations performed on lists in Python.

Steps:

Create an empty list: Initializes an empty list named my_list. Append elements: Adds the elements 10, 20, 30, and 40 to the end of my_list. Insert element: Inserts the value 15 at the second position (index 1) in my_list. Extend list: Adds the elements from the list [50, 60, 70] to the end of my_list. Remove last element: Removes the last element from my_list. Sort list: Sorts the elements of my_list in ascending order. Find index: Finds and prints the index of the value 30 in my_list.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages