In [39]:

```
import math
def quad6():
try:
a, b, c = eval(input("\nPlease enter the coefficients (a, b, c): "))
discrim = b**2 - 4 * a * c
disc_root = math.sqrt(discrim)
root1 = (-b + disc_root) / (2 * a)
root2 = (-b - disc_root) / (2 * a)
print("\nThe solutions are: ", root1, root2)
except ValueError as exp:
#print(exp)
if str(exp) == "math domain error":
print("\nNo real roots!")
elif str(exp) == "too many values to unpack (expected 3)":
print("Too many numbers!")
else:
print("Not sure what happened, but it happened!")
except (SyntaxError, NameError):
print("\nBad input!")
except TypeError:
pass
```

In [37]:

```
quad6()
```

In [38]:

```
a,b,c = 1,2
```

In [40]:

```
import this
```

In [ ]:

```
try:
print("Hello World")
except:
pass
```