CodeLab Solution 51260

CS101 CodeLab Solutions

CodeLab Solution 51265

Create a dictionary that maps the first n counting numbers to their squares. Associate the dictionary with the variable squares.

[cc lang=”PYTHON”] squares=dict((n,n**2) for n in range(1,n+1))


No Comments Yet.

Leave a comment

You must be Logged in to post a comment.