Question: 20. This python program doesn't work. You need to find and fix ERROR. (3 points) rewrite wrong line(s) to fix this program # Solve
20. This python program doesn't work. You need to find and fix ERROR. (3 points) rewrite wrong line(s) to fix this program # Solve the quadratic equation ax**2+bx+c=0 #import complex math module #import math - a float(input('Enter b-float(input('Enter c-float(input('Enter d=(b**2)-(4*a*c) a: ')) b: ')) c: ')) soll= (-b-cmath.sqrt(d))/(2*a) sol2=(-b+cmath.sqrt(d))/(2*a) print("The solution are (0) and {1}'.format(soll,sol2))
Step by Step Solution
There are 3 Steps involved in it
The image youve provided contains a Python program that aims to solve a quadratic equation of the fo... View full answer
Get step-by-step solutions from verified subject matter experts
