Page 144 - Code_GPT_Class_8
P. 144
3. Competency-based/Application-based questions:
a. Nimit wants to create a list of students’ names and their percentage. He then wants to combine all
the list into one list for example: [ [‘Avinay’, 78], [‘Shrey’, 89], [‘Vinod’,76] ]. Is it possible to create a
list in another list? If yes, what is it called?
b. Pratha has created a list of her friends as Party =[Vinay’, ‘Ranu’, ‘Krish’ and ‘Yashik’]
coming to your birthday party. But ‘Yashik’ cancelled last minute and ‘Mridul’
agreed. Help Pratha by telling her how to add and remove her friends’ name from
the list.
SDG Activity
Create a Python program that tracks and analyses food production data for different
crops. Use functions to calculate total yield, compare annual production, and identify
areas of improvement to help reduce hunger and ensure food security.
Explore in the Lab 21 st Century #Technology Literacy
Skills
To
Subject Programming using List Operations
Write a program in python to:
1. find the largest element in a list.
2. check if a list is empty or not.
3. concatenate two lists.
4. count the number of occurrences of a specific element in a list.
For The Teacher
Discuss about different operations of list with the students.
Explain the difference between positive indexing and negative indexing to the students.
CodeGPT (Ver. 4.0)-VIII
142

