Introduction
In this lab, you will predict the bits used to store values in a Python program.
Work this lab individually. Do not show your work or answers to another student, and do not ask to see another student's unless you are trying to help them and yours is complete.
Provided Materials
- See your instructor's instructions for the lab checklist and exercise.
- showbits.py (
right-click to save ) — Simple library for viewing the bits used to store a number either raw (1's and 0's) or in hexadecimal shorthand. See the handout for example usage. (VidGrid Installation Instructions)Whenever you are asked to save a file,
it is best to right-click and select "Save link as"
rather than following the link.
This ensures your file exact matches the one
on the server byte for byte.
Lab Deliverables
Dr. Retert and Dr. Lembke's sections: Please see your instructor's requirements.
Dr. Yoder's section: Please see below.
Submission Instructions for Dr. Yoder
Submission
- Dr. Yoder's section only: Lab Checklist and Exercise — I will provide a paper copy of this. It includes both the lab checklist and the provided lab exercise.
The electronic copy of the lab is the most up-to-date. It includes the following corrections over printed copies Dr. Yoder's students received:
and followingand 25. Please follow the instructions about which methods you can use within Problem 27 if you choose to do the excellent credit.
Dr. Yoder's section only: Finish the parts of the lab that we work in class following your instructor's verbal instructions. Look through the whole lab so you have an idea when you can get started on the later parts.
Turn in the completed lab packet by the deadline listed on the bottom of the checklist.