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

 

konstans@stuy.edu > squareDictionaryFromList
prev  |  next  |  chance

Make a dictionary of integers and their squares using the integers stored in the list provided.
WARNING Codingbat has issues with formatting so you have to return a list with your dictionary inside of it. You must return [D] where D is your dictionary.


squareDictionaryFromList([]) → [{}]
squareDictionaryFromList([3]) → [{3: 9}]
squareDictionaryFromList([56, 84]) → [{84: 7056, 56: 3136}]

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

def squareDictionaryFromList(integers):

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

Copyright Nick Parlante 2017 - privacy