Numbers#

1. Creating formulas#

Write the following mathematical formula in Python:

(1)#\[\begin{align} result = 6a^3 - \frac{8b^2 }{4c} + 11 \end{align}\]
a = 2
b = 3
c = 2
# Your formula here:
result = 
  Cell In[2], line 2
    result =
             ^
SyntaxError: invalid syntax
assert result == 50

2. Floating point pitfalls#

Show that 0.1 + 0.2 == 0.3

# Your solution here

# This won't work:
# assert 0.1 + 0.2 == 0.3