If you want to create a Python script to handle or manipulate this list of participants, there are several things you might want to do, such as sorting the list, searching for a participant, or organizing it in different ways. Below is a basic Python script that demonstrates how you might handle this list by performing simple operations like printing, sorting, and searching:
# Participants List
participants = [
"Akash Sharma",
"Anil Kapoor",
"Anjana Bhanot",
"Anjana Sharma",
"Anu Awasthi",
"Bam Dev",
"Chandresh",
"Jeet Guleria",
"Krishna Presthaya Das",
"Kushma",
"Madan Lal",
"Monika Shukla",
"Preeti",
"Radha Choudhary",
"Rajni Sharma",
"Rakesh Sharma",
"Ramesh Chandra",
"Ranjana Naag",
"Ranjit Jamwal",
"Ratan Chand",
"Rishabh",
"Ritesh",
"Satish Mishra",
"Shakuntala Vyas",
"Shani",
"Sharda",
"Shri Kishori Radha Devi Dasi",
"Sindo Mishra",
"Sneh Lata Kaul",
"Suman Sharma",
"Suresh Minhas",
"Sunita",
"Suryansh",
"Usha Jamwal",
"Vijay Ved Vyas",
"Yudhvir",
]
# Function to display menu options
def display_menu():
print("Options:")
print("1. Display all participants")
print("2. Display participants sorted by name")
print("3. Search for a participant")
print("4. Exit")
# Function to display all participants
def display_participants():
for participant in participants:
print(participant)
# Function to sort and display participants
def display_sorted_participants():
sorted_list = sorted(participants)
for participant in sorted_list:
print(participant)
# Function to search for a participant
def search_participant(name):
found = False
for participant in participants:
if name.lower() in participant.lower():
print(participant)
found = True
if not found:
print("No matches found for:", name)
# Main script
while True:
display_menu()
choice = input("Enter your choice (1-4): ")
if choice == '1':
display_participants()
elif choice == '2':
display_sorted_participants()
elif choice == '3':
search_name = input("Enter the name or part of the name to search: ")
search_participant(search_name)
elif choice == '4':
print("Exiting the program.")
break
else:
print("Invalid choice, please try again.")
This script includes:
- A menu to choose operations.
- Functions to display the entire list, display it sorted, and search by name.
- A loop to keep the script running and accepting user input until they choose to exit.
You can run this script in a Python environment. It will prompt you for choices and execute the corresponding function. Adjust and expand this script based on what additional features you might need.