Write A List Comprehension For Number And Its Cube For L1 2 3 4 #430
Write a list comprehension for number and its cube for l=[1, 2, 3, 4, 5, 6, 7, 8, 9].
This multiple choice question (MCQ) is related to the book/course gs gs109 Python. It can also be found in gs gs109 List Comprehension - Python List Comprehension - Quiz No.2.
Write a list comprehension for number and its cube for l=[1, 2, 3, 4, 5, 6, 7, 8, 9].
[x**3 for x in l]
[x^3 for x in l]
[x**3 in l]
[x^3 in l]