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.

Expert's answer

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!

LATEST TUTORIALS
APPROVED BY CLIENTS