I'm new to stack overflow and Python too. I'm currently coding in Python 3.8.2 on https://www.repl.it.
I am making a math solver which solves things using certain formulas, I have print functions, input functions and variables which are also integers.
What I want to do is that the user will be greeted, then the user will be prompted to choose a certain option (ex. 1, 2, 3, etc.) and each option would be a formula/method.
I have written code for just one formula as of now, but this concept which I'm solving has multiple different formulas.
Have a look at my code below:
print("Hello, welcome to the \nA.P. SOLVER!")
import click
if click.confirm("Do you want to start?", default=True):
print("Ok! Let's start!")
a = input('Type the value of "a" [the first term of the A.P.] ')
d = input('Type the value of "d" [the common difference of the A.P.] ')
n = input('Type the value of "n" [the nth term of the A.P.] ')
print(f"Finding the {n}'th/nd' term...")
a = int(a)
d = int(d)
n = int(n)
x = a + (n-1)*d
print(x)
Please help me out, would be appreciated :)