# List of student names students = [ "sohail", "Rehma", "nayla", "Sneha", "Amit", "Anjali", "Rahul", "Amit" ] # Take name as input name = input("Enter student name to check: ") # 1. Check if student is available if name in students: print(f"{name} is available in the student list ") else: print(f"{name} is NOT available in the student list ") # 2. Count how many students have that name count = students.count(name) print(f"Number of students with name '{name}': {count}")