**Python Program to Perform Operations on a List of Student Names**

🎯 OOP Python
🔄 Converted
Asked by Harsh Ojas Dave Jan 30, 2026 at 10:44 Subject: Programming Skills

Question:

Write a Python program to create a list of student's names and perform following operations on it. i. Append Name in a list. ii. Display list in sorted order. iii. Count the total number of students in the list. iv. Display the last 3 names of a list.

💬 0 Comments 💡 1 Solution(s)

💡 Solutions (1)

Harsh Ojas Dave

Jan 30, 2026 at 12:37

👍 0

upvotes

students=[] n=int(input("How many names you want to give?=>")) for i in range(n): name=input("Enter the name of student=>") students.append(name) print(students) students.sort() print(students) print("Total number of Students",len(students)) print(students) print(students[-3:])

👍 Login to Vote

Want to add your solution? Login to contribute!

🔄 This question has been converted to a program

View Program →

💬 Comments (0)

Login to post comments

No comments yet

Be the first to comment!