Skip to content

mds-python/quadratic-equation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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).

About

The very first exercise

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages