Answer to Question #295644 in Python for Sudheer

Question #295644

list of lists that has the first number as the same number given in the input list and the second number be the square of the first number.

1
Expert's answer
2022-02-09T08:04:49-0500
input_list = [0,1,2,3,4,5,6,7,8,9]
sqr_list = [[i, i**2] for i in input_list]
print(sqr_list)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS