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 

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

1 Expert Approved Answer
Step: 1 Unlock

The image youve provided contains a Python program that aims to solve a quadratic equation of the fo... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!