Python program to create a list containing the power of said number in bases raised to the corresponding number in


Topic: Python program to create a list containing the power of said number in bases raised to the corresponding number in

Solution

bases_num = [10, 20, 30, 40, 50, 60, 70, 80, 90, 100]
index = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
def power_base(num1, index1):
    print("Base numbers abd index: ")
    print(bases_num)
    print(index)
    result = list(map(pow, num1, index1))
    print("\nPower of said number in bases raised to the corresponding number in the index:")
    print(result)
power_base(bases_num, index)



List all Python Programs