# Imports the functionality that we need to display YouTube videos in a Jupyter Notebook.  
# You need to run this cell before you run ANY of the YouTube videos.

from IPython.display import YouTubeVideo 

# WATCH THE VIDEO IN FULL-SCREEN MODE

YouTubeVideo("fF841G53fGo",width=640,height=360)  # random numbers

"""
Explanation: Day 11 - pre-class assignment
Goals for today's pre-class assignment

Use random number generators to create a sequence of random floats and integers
Create a function and use it to do something.

Assignment instructions
Watch the videos below, read through Section 4.6, 4.7.1, and 4.7.2 of the Python Tutorial, and complete the programming problems assigned below.
This assignment is due by 11:59 p.m. the day before class, and should be uploaded into the "Pre-class assignments" dropbox folder for Day 11.  Submission instructions can be found at the end of the notebook.
End of explanation
"""


# put your code here.




# WATCH THE VIDEO IN FULL-SCREEN MODE

YouTubeVideo("o_wzbAUZWQk",width=640,height=360)  # functions

"""
Explanation: Some possibly useful links:

Python "random" module documentation
Numpy "random" module

And some interesting links on what you use random numbers to do in programming:

Wikipedia article on "Applications of randomness"
Wikipedia article on random number generation

Question 1:  Using the Python random module, first seed the random number generator with a number of your choosing and then use a loop to create and print out several floating-point numbers whose values are between 5 and 10.  Verify that if you re-run this code several times, the random numbers stay the same, and that if you comment out the code they change!
End of explanation
"""


# put your code here.






"""
Explanation: Tutorial on functions in python
Dive Into Python - section on functions

Question 2: Give a function a list of floating-point numbers and have it return the min, max, and average of them as three separate variables.  Store those in variables and print them out.
End of explanation
"""


# put your code here



"""
Explanation: Question 3:  Give a function a list of floating-point numbers and have it return either the min, max, or mean value, depending on an optional keyword (that you give it as a second argument).  The default should be to provide the mean value. Store that in a variable and print it out.
End of explanation
"""


from IPython.display import HTML
HTML(
"""
<iframe 
	src="https://goo.gl/forms/rTmsyHG72q8pF0cT2?embedded=true" 
	width="80%" 
	height="1200px" 
	frameborder="0" 
	marginheight="0" 
	marginwidth="0">
	Loading...
</iframe>
"""
)

"""
Explanation: Assignment wrapup
Please fill out the form that appears when you run the code below.  You must completely fill this out in order to receive credit for the assignment!
End of explanation
"""


