I just started using python a week ago although I have some background in C++. I'm just making some simple user defined functions. Code is below.
def quads():
print "We are going to solve polynomials using the standard quadratic formula. Imagine ax^2+bx+c=0"
a = input('enter a: ')
b = input('enter b: ')
c = input('enter c: ')
root=(b**2)-(4*a*c)
root=root**.5
results=(-b+root)/(2*a)
return results
after I open the compiler I import the file that holds the function, then call the function and I get some very strange output. See below
import quadratic
quadratic.quads
<function quads at 0x02AC6AB0>
has anyone ever seen this input. I usually just google my issues and find an easy fix, but I haven't found anything on this. I have written two or three simple functions but all are returning a similar output.
quadratic.quads(), so that you are calling the function - David Robinson