Skip to content

Latest commit

 

History

History
12 lines (7 loc) · 648 Bytes

File metadata and controls

12 lines (7 loc) · 648 Bytes

Quadratic Equation

Please write a code that calculates real roots of a quadratic equation of the form

a x2 + b x + c = 0

For the coefficients defined at the beginning of the program in the appropriate variables. Calculation result must be stored in a tuple named 'solutions' and printed at the very end of the program.

In the file exercise1.py there is a program template with the definition of example equation parameters. It needs to be completed.

Hint: To compute a square root, you may raise a number to the power of 0.5 (like 9**0.5).