Informatics Practices
Create a list containing 10 marks the scored by the students—
(i) Write a command to insert the marks of the student at index position 4.
(ii) Write a command to know the length of the list.
Python List Manipulation
2 Likes
Answer
The list containing 10 marks scored by the students is as follows:
marks = [85, 92, 78, 90, 88, 76, 95, 89, 84, 91]
(i)
marks.insert(4, 87)
(ii)
l = len(marks)
Answered By
1 Like
Related Questions
What will be the output of the following code?
Country=["India", "Australia", "USA", "China", "Russia", "Ukraine" ] print(Country[2:5]) print(Country[-5:-2])Define Relation between IOT and WOT?
What is MySQL?
Match the followings:
Column 1 Column 2 (a) Alternate Key (A) Number of tuples in a relation (b) Relation (B) Used to specify rules for the data in a table (c) Cardinality (C) A table in a relational database (d) Constraint (D) A candidate key that is not a Primary Key