S Stasenndb New member Sep 20, 2021 #1 Write a list comprehension for number and its cube for l=[1, 2, 3, 4, 5, 6, 7, 8, 9]. A. [x**3 for x in l] B. [x^3 for x in l] C. [x**3 in l] D. [x^3 in l]
Write a list comprehension for number and its cube for l=[1, 2, 3, 4, 5, 6, 7, 8, 9]. A. [x**3 for x in l] B. [x^3 for x in l] C. [x**3 in l] D. [x^3 in l]
V Viết Mạnh Member Sep 20, 2021 #2 Answer: a Explanation: The list comprehension to print a list of cube of the numbers for the given list is: [x**3 for x in l]. Upvote 0 Downvote
Answer: a Explanation: The list comprehension to print a list of cube of the numbers for the given list is: [x**3 for x in l].