This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Solve the quadratic equation ax**2 + bx + c = 0 | |
| # import complex math module | |
| import cmath | |
| a = 1 | |
| b = 5 | |
| c = 6 | |
| # calculate the discriminant |