0
TypeError unsupported opperands types
Write a program to calculate the amount that will result from the doubling to understand which choice results in a larger amount. I’m getting a typeError when running this any help will be appreciated. Thanks a = 1000000 x = range(1, 31) b = pow(0.01, x) sum = 0 total = sum + b if a > total: print("a is great") else: print("total is great")
2 Antworten
0
x is not a number, it's a range. Therefore, you cannot use it in pow function.
0
thanks for replying