I'm having a problem with my code
def bconver(n,b):
for i in range(n):
x = b ** i
I am trying to have b
to the power of all the i
values from the range of n. I need to be able to take those values and divide them by n allowing me to change it to any base.
I have tried this code but it doesn't work since I can't divide those values after. Also, I need the answers not in a list
x = [b ** i for i in range(n)]