Exponential.py
Exponential.py
You need to write a program that outputs terms of the exponential function, f(x) = b^x.
When executed, your program should prompt the user for a base value and certain amount of terms. This might look like this:
> What's the base? 2
> How many terms? 4
> 1
> 2
> 4
> 8
Your program should start with f(0) and print out at most 20 terms.
Your code should follow these outputs. Test it with other inputs to see if it works correctly.
> What's the base? 1.2
> How many terms? 0
> Invalid input.
> How many terms? 25
> Invalid input.
> What's the base? -5
> How many terms? 4
> 1
> -5
> 25
> -125
> What's the base? 0.8
> How many terms? 3
> 1
> 0.8
> 0.64
Name this "lastname_exponential.py" and submit this onto Google Classroom alongside your other 2 programs.