#Import Youtube Video
from IPython.display import YouTubeVideo
YouTubeVideo('7yDmGnA8Hw0')
%%html
<iframe src="files/BridgeAnimation.mp4"></iframe>
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
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))
Failed to display Jupyter Widget of type interactive
.
If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean that the widgets JavaScript is still loading. If this message persists, it likely means that the widgets JavaScript library is either not installed or not enabled. See the Jupyter Widgets Documentation for setup instructions.
If you're reading this message in another frontend (for example, a static rendering on GitHub or NBViewer), it may mean that your frontend doesn't currently support widgets.
<function __main__.CalculateTime(A, B, C, D)>