id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

squaresList


squaresList(numberList) -- given a list of numbers numberList, return a list containing the squares of each of the numbers in numberList in the order in which they appeared in numberList.


squaresList([1, 2, 3]) → [1, 4, 9]
squaresList([4, 0]) → [16, 0]
squaresList([12, 9, 6, 3]) → [144, 81, 36, 9]

...Save, Compile, Run (ctrl-enter)

def squaresList(numberList):

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Post-solution available

Copyright Nick Parlante 2017 - privacy