The answer is quite surprisingly easy: you need the math
lib:
from math import sqrt
a = float(input('Rentrer la valeur de a : '))
b = float(input('Rentrer la valuer de b : '))
c = float(input('Rentrer la valuer de c : '))
delta = b**2 - 4*a*c
x1 = ((-b) + sqrt(delta)) / (2*a)
x2 = ((-b) - sqrt(delta)) / (2*a)
print(x1, x2)
"""
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…