Computer Science, asked by amaandola, 11 months ago

Write a python program that stores some value in a numeric list. Ask the user to input a number to be deleted. Delete all the occurrences of the number in the list

Answers

Answered by chintamanbhamre000
1

Answer:

The task is to perform the operation of removing all the occurrences of a given item/element present in a list.

Examples :

Input :

1 1 2 3 4 5 1 2

1

Output :

2 3 4 5 2

Explanation : The input list is [1, 1, 2, 3, 4, 5, 1, 2] and the item to be removed is 1.

After removing the item, the output list is [2, 3, 4, 5, 2]

Input :

5 6 7 8 9 10

7

Output :

5 6 8 9 10

Answered by itzRealQueen
2

Answer:

Pretty much I need to write a program that checks if a list has any duplicates and if it does it removes them and returns a new list with the items that ...

Similar questions