You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

Please read ALL the instructions carefully, especially those on the main homework page.

We are not quite ready to write our own programs yet, so this week HW is just to complete a few more short Python tutorials.  practice, practice, and practice!

DIRECTIONS:  Open the Python tutorial and run the commands in these tutorials interactively in a Python or JupyterLab session.   Before you close your terminal,  highlight and copy the lines from your terminal that show you were actively doing the tutorials.  Then, paste what you copied from the Python session into log files with the names given in each exercise. Or, if you prefer, you may use a JupyterLab notebook to work through the tutorials and save that file.   If you are not sure how to do this, please come to office hours.  Another tutorial explanation here.

The next HW will actually require you to start writing programs!

Completion of Labs and Reading

  • If you did not yet complete in-class work or the weekly reading, then finish that first. 

(0) Checkout the HW02 repository:

Login to Rivanna

Use this link to accept the assignment and create your repository on GitHub: https://classroom.github.com/a/Z5OiBk2p   

After you accept the assignment and the repository and it exists in your GitHub, as we did in class02, clone the repository into your working area on Rivanna. 


>>>  git clone git@github.com:PHYS1655Su24/HW02-<userid>.git


 Navigate into the new directory via usage of the 'cd' command.



(1) Integer Tutorial (2 points)


Complete the python integer tutorial you may do it running python interactively, or in a JupyterLab Notebook. 

Copy and paste the python interactive session into a new file called integer.log or if you used JupyterLab and create a file called integer.ipynb.

(2) String Tutorial (2 points)

Complete the python string tutorial.

Put your evidence in a string.log or string.ipynb

(3) Print Tutorial (2 points)

Complete the python print tutorial.

Put your evidence in print.log or print.ipynb

(4) Booleans Tutorial (2 points)

Complete the python boolean tutorial.

Put your evidence in boolean.log or boolean.ipynb

(5) Loop Tutorial (2 points)

Complete the python loop tutorial.

Put your evidence in loop.log or loop.ipynb

(6) Push repo to GitHub (important!!!)


Add the five .log files (or .ipynb) files to your repository and push it to GitHub. 

  • No labels