Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started