Assignment 2

Assignment:

  • More details on the homework assignment process can be found here. The button to accept the assignment is below.

Please turn in Lab02 as a pdf in the base directory of the repository.

ISSUES

I mentioned this was my first time changing over to OKpy for these types of homework.

Don’t worry about the autograding tests. As a result, you won’t have to install any packages. Just complete the questions. Sorry about this. Also, you are welcome to submit a jupyter notebook for lab02 if you are having trouble with the pdf (this can be fixed by deleting the cartoon though).

[Please note though….working through problems of a technical nature is the type of technical fluency we are looking to build in this class. We want you to develop an appreciation of the connections between things like packages, data type, computing environment as part of this class.]

Three issues where identified thus far:

(1) You may get an error with the installation of dependencies if just working locally.

Instead open up an Anaconda prompt/terminal and issue the following commands:

conda install -y pip
pip install git+https://github.com/grading/gradememaybe.git

The solution I demonstrated in class of copying the requirements.txt will also work.

(2) You may get a conflict with matplotlib and gradememaybe

For lab.analyticsdojo.com you can temporarily uninstall matplotlib with:

!conda uninstall -y matplotlib

(3) You may get an error on HM02 q26.

The test is looking for 4.6 but you may get 4.5999999999999996. Reasons are here: https://stackoverflow.com/questions/5997027/python-rounding-error-with-float-numbers https://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html https://docs.python.org/3/tutorial/floatingpoint.html

I’ve updated the test for q26 to address this issue. You can replace the content of tests/q24.py with the value in this file: https://raw.githubusercontent.com/rpi-techfundamentals/hm-02-starter/master/tests/q26.py

(4) Change your collaborators from a list to a string.

collaborators = "Alyssa Hacker"