(python) How to check the type of the given quadratic equation using python 2.7.10

Опубликовано: 24 Октябрь 2024
на канале: FUN TIME WITH MOKSH
28
1

like subscribe and share

The link to the video to solve these quadratic equations is:
   • (python) How to make a program to sol...  

The codes for the following program:
________________________________________________________________________________________
a= input("enter the coefficiant of x^2: ")
b= input("enter the coefficiant of x: ")
c= input("enter the constant: ")
d= b*b
e= 4*a*c
f= d-e
if f "less than" 0:
print "no real roots can be formed from the given equation"
if f==0:
print "same real roots can be formed from the given equation"
if f "more than" 0:
print "real roots can be formed from the given equation"
#the places where I have written "less than" and "more than", you would need to put those signs using the angle brackets
i have not written it in the codes as angle brackets are not allowed in the description
_____________________________________________________________________________________________
THANK YOU FOR YOUR SUPPORT