Question: 
Write a python function to check whether one root of the quadratic equation is twice of the other or not.


Model's Code:
def Check_Solution(a, b, c):
    discriminant = b**2 - 4*a*c
    if discriminant < 0:
        return "No"
    r1 = (-b + discriminant**0.5) / (2*a)
    r2 = (-b - discriminant**0.5) / (2*a)
    if r1 == 2 * r2 or r2 == 2 * r1:
        return "Yes"
    return "No"



Sample Correct Code:
def Check_Solution(a,b,c): 
    if (2*b*b == 9*a*c): 
        return ("Yes"); 
    else: 
        return ("No"); 


Asserts:
assert Check_Solution(1,3,2) == "Yes"
assert Check_Solution(1,2,3) == "No"
assert Check_Solution(1,-5,6) == "No"


Tests:
Test 1 of 3: PASS
Test 2 of 3: PASS
Test 3 of 3: PASS

Test 359 of 974: 260/359 (72.42339832869081%): success