Python_Class9_List
Python_Class9_List
2)# Program to create a numeric list and delete the 4th element
# Initialize a list
my_list = [10, 20, 30, 40]
5)Python program to get the positive and negative indices of a list without function.
# Example list
my_list = [10, 20, 30, 40, 50]
print("Element | Positive Index | Negative Index")
print("-----------------------------------------")
6) reverse a list
my_list = [10, 20, 30, 40, 50]
7)WAP in python to create a numeric list and print only the negative and positive integers.