Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Python List Assignment


Overview

This assignment demonstrates basic list operations in Python, including creating a list, appending elements, inserting values, extending with another list, removing elements, sorting, and finding the index of a specific value.


Assignment Requirements

You will perform the following tasks on a list named my_list:

-	Create an empty list called `my_list`.
-	Append the elements `10`, `20`, `30`, and `40` to `my_list`.
-	Insert the value `15` at the second position (index 1) in the list.
-	Extend `my_list` by adding 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

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages