Question: script to know how many 1's is in the list numbers. Assign that value to the variable how_many_num. Please do not use a while or

  1. script to know how many 1's is in the list numbers. Assign that value to the variable how_many_num. Please do not use a while or for loop.

numbers = [4, 2, 23.4, 9, 343, 9, 1, 234.001, 5, 49, 8, 9, 34, 52, 1, -2, 9.1, 1]

#write code here

2.script that uses slicing to get rid of the second 17 so that there are only two 17's in the list to the variable numbers.

numbers = [4, 2, 17, 23.4, 17, 9, 545, 9, 1, 234.001, 5, 49, 17, 9, 34, 52, 1, -2, 9.1, 4]

#write code here

P.S. USE PYTHON JUPYTER LAB

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!