Python_Single_List_2_Examples
Traverse → forward & backward Search → find a student Update → change a student name Add → add at the end Delete → remove a student Sort → alphabetical & reverse alphabetical Reverse → create a reversed list without using reverse() First/Last Alphabetically → find first and last name Count Occurrences → count a student Insert → insert a student at a specific position Second student alphabetically Remove first student starting with a specific letter Display students with name length greater than 4 # Single List of Students students = ["Alice", "Bobby", "Charlie", "David", "Frank", "Grace"] # ----------------------------- # 1. Traverse the list (forward) # ----------------------------- print("1. Traverse forward:") for i in range(len(students)): print(students[i]) # ----------------------------- # 2. Traverse the list (backward) # ----------------------------- print("\n2. Traverse ba...