Program - function to create a list of tuples from a given list having number and its cube in each tuple
Topic: Program - function to create a list of tuples from a given list having number and its cube in each tuple
Solution
def list_of_tuple( l: list): final = [ (i, pow(i,3)) for i in l] return final
List all Python Programs