print("Welcome to Derivulator!") formula = input("Please select quadratic, exponential, sine, cosine, ax+b, or ax^b+c") form = formula.lower() go = 0 while go == 0: if form == "quadratic": print("Quadratic") print("ax^2 + bx + c") a = input("Please give a value for a") a = int(a) b = input("Please give a value for b") b = int(b) c = input("Please give a value for c") c = int(c) x_in = input("Do you want to put in a value for x?") x_in = x_in.lower() if x_in == "yes": x = input("Please give a value for x") elif x_in == "no": part_a = 2*a deriv_form = part_a,"x+b" elif form == "exponential": elif form == "sine": elif form == "cosine": elif form == "ax+b": elif form == "ax^b+c": else: print ("Invalid Selection. Please try again.")
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question