Question: Write a function notsix ( ) that takes a list of integers and returns a ( shorter ) list of only those that do not

Write a function notsix() that takes a list of integers and returns a (shorter) list of only those that do not begin with a 6. Test it on the list [1234,6783,6,4321,9876]. Hints: You can create a blank list with x =[]. You can append item to it with x.append(item).

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 Databases Questions!