Question: Complete the following function. This starting code is in tripleStub.py. Save it to the new name triple.py. Note the way an example is given in

 Complete the following function. This starting code is in tripleStub.py. Save

Complete the following function. This starting code is in tripleStub.py. Save it to the new name triple.py. Note the way an example is given in the documentation string. It simulates the use of the function in the Shell. This is a common convention: def tripleAll(nums): ''print triple each of the numbers in the list nums. >>> tripleALL([2, 4, 1, 5]) 12 3 15 >>> tripleAll([-6]) 78 121 The elements of the list in the for loop heading are not all of the same type. [3] You need to use the loop variable twice in the loop body

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!