Write a function to return the type roots of a quadratic equation ax**2 + bx + c = 0
Topic: Write a function to return the type roots of a quadratic equation ax**2 + bx + c = 0
Solution
def root_type(a:float,b:float,c:float): if b**2-4*a*c >= 0: return 'real' else: return 'imaginary'
List all Python Programs