Wednesday, 17 December 2025

81 - Class 11 Computer Science with Python Practical File

Program: 81: Write a Python program to create NewList which contains all the values of original list after removing duplicate values. Also display the NewList.



OriginalList = [10, 20, 30, 20, 40, 10, 50, 30]

NewList = []

for item in OriginalList:

    if item not in NewList:

        NewList.append(item)

print("NewList:", NewList)


Output:


NewList: [10, 20, 30, 40, 50]

80 - Class 11 Computer Science with Python Practical File

Program 80: Write a program in Python to create a list of words which start and end with the same letter from a given string S="window apple wow table taught pencil comic'. The output should be: ['window', 'wow', 'taught', 'comic']


S = "window apple wow table taught pencil comic"

# Split the string into words

words = S.split()

# Create list of words starting and ending with same letter

result = []

for word in words:

    if word[0] == word[-1]:

        result.append(word)


# Display the result

print(result)



Output:

['window', 'wow', 'taught', 'comic']

79 - Write a Python program to input 10 numbers to store in the list and print the third largest number.

Write a Python program to input 10 numbers to store in the list and print the third largest number.


# Input 10 numbers

numbers = []

for i in range(10):

    num = int(input("Enter number: "))

    numbers.append(num)


# Sort the list in descending order

numbers.sort(reverse=True)


# Print the third largest number

print("Third largest number:", numbers[2])


Output:

Enter number: 5

Enter number: 9

Enter number: 7

Enter number: 2

Enter number: 6

Enter number: 4

Enter number: 8

Enter number: 9

Enter number: 15

Enter number: 14

Third largest number: 9

78 - Write a program in Python that accepts students names in the form of a tuple as an input from the user and then displays only those students' names that start with letter 'S' or 's'.

Write a program in Python that accepts students names in the form of a tuple as an input from the user and then displays only those students' names that start with letter 'S' or 's'.


# Accept student names from the user

names = eval(input("Enter a tuple of student names: "))


print("Students whose names start with 'S' or 's':")

for name in names:

    if name.startswith('S') or name.startswith('s'):

        print(name)


Output:


Enter a tuple of student names: ('Amit','Sumit','Rohit','Sonu')

Students whose names start with 'S' or 's':

Sumit

Sonu

77 - Write a program in Python that repeatedly asks the user to input Student's Name and Class and store it in a dictionary D, whose keys are Student's Name and values are Student's Class. Then display the dictionary

Write a program in Python that repeatedly asks the user to input Student's Name and Class and store it in a dictionary D, whose keys are Student's Name and values are Student's Class. Then display the dictionary


D = {}

while True:

    name = input("Enter Student's Name: ")

    student_class = input("Enter Student's Class: ")


    D[name] = student_class


    choice = input("Do you want to add another student? (yes/no): ")

    if choice.lower() == "no":

        break

print("Student Dictionary:")

print(D)



Output:


Enter Student's Name: Amit

Enter Student's Class: 11

Do you want to add another student? (yes/no): yes

Enter Student's Name: Sumit

Enter Student's Class: 10

Do you want to add another student? (yes/no): yes

Enter Student's Name: Mohit

Enter Student's Class: 12

Do you want to add another student? (yes/no): yes

Enter Student's Name: Rohit

Enter Student's Class: 11

Do you want to add another student? (yes/no): no

Student Dictionary:

{'Amit': '11', 'Sumit': '10', 'Mohit': '12', 'Rohit': '11'} 

76 - Write a program in Python that takes a string as an input and displays it if its length is greater than 5.

Write a program in Python that takes a string as an input and displays it if its length is greater than 5.


# Take input from the user

text = input("Enter a string: ")


# Check length of the string

if len(text) > 5:

    print(text)

else:

    print("Length is not greater than 5")



Output:

Enter a string: Python
Python

OR

Enter a string: Ram
Length is not greater than 5

75 - Write a program in Python that takes a list of integer from the user and displays the number of even elements

Write a program in Python that takes a list of integer from the user and displays the number of even elements


# Take input from the user
numbers = eval(input("Enter a list of interger: "))

# Count even numbers
count = 0
for num in numbers:
    if num % 2 == 0:
        count += 1

# Display result
print("Number of even elements:", count)


Output:

Enter a list of interger: [5,2,9,4,8,7,3]
Number of even elements: 3

Sunday, 7 December 2025

International Computer Science Teachers Week (14–20 December 2025)

International Computer Science Teachers Week (14–20 December 2025)

Online Article, Essay, Poster & Banner Writing Competition


Dear Students,

As you know, 19 December is celebrated as International Computer Science Teachers Day, and this year, 14–20 December 2025 will be observed as International Computer Science Teachers Week. As part of the celebration of International Computer Science Teachers Week (14–20 December 2025), we are organizing an Online Article, Essay, Poster, and Banner Writing Competition.


๐ŸŽฏ Competition Categories


Article Writing – Topic related to Computer Science, Technology, AI, or Digital Innovation.


Essay Writing – 400–600 words on themes such as the role of CS teachers, impact of technology, future of computing, etc.


Digital Poster/Banner Making – Themes:


  • International Computer Science Teachers Week
  • Artificial Intelligence
  • Cyber Safety
  • Coding Culture
  • Digital Empowerment


๐Ÿ“… Important Details


Mode: Online Submission


Last Date for Registration: 12 December 2025


Submission Deadline: 18 December 2025


Result Announcement: 19 December 2025


๐Ÿ“Œ Registration


Students who wish to participate must register using the link below on or before 06 December 2025.

Registration Link: 


https://docs.google.com/forms/u/3/d/10zBu-8N6q0x2eVQwtUjz3zARbPcbbAns44C5RpUD0Ik/preview


We encourage all interested students to showcase their creativity, digital skills, and knowledge of Computer Science.

Let’s celebrate this week with innovation, inspiration, and enthusiasm!


All teachers are requested to kindly share this information in their respective schools as well.

Winners of the competition will be awarded prizes and certificates for their outstanding performance.


Students are requested to email their articles, essays, digital posters/banners, etc. to

support@spsharmag.com

 in any of the following formats: WORD / PDF / JPG / PNG before or on 18 Dec 2025


– Computer Science Department