In [1]:

```
#Import Youtube Video
from IPython.display import YouTubeVideo
YouTubeVideo('7yDmGnA8Hw0')
```

Out[1]:

In [2]:

```
%%html
<iframe src="files/BridgeAnimation.mp4"></iframe>
```

In [2]:

```
def CalculateTime(A, B, C, D):
t=[A,B,C,D]
t.sort()
A=t[0]
B=t[1]
C=t[2]
D=t[3]
print('Sending Fastest Person solves the problem in', B+A+C+A+D, 'minutes')
print('Combining Two Slowest solves the problem in', B+A+D+B+B, 'minutes')
return
```

In [3]:

```
from ipywidgets import interact
import ipywidgets as widgets
interact(CalculateTime,
A=widgets.IntSlider(min=1, max=20),
B=widgets.IntSlider(min=1, max=20),
C=widgets.IntSlider(min=1, max=20),
D=widgets.IntSlider(min=1, max=20))
```

Out[3]: