Loading repository data…
Loading repository data…
Shogz-Labs / repository
Recitation Slides & Jupyter Notebooks for LE/EECS 1015 (Fall 2024, Section A, Lab 04). Please note that this repository will no longer be updated after Sunday December 15, 2024.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
[!WARNING]
Per the academic calendar, Fall classes end on Tuesday December 3, 2024. As a result, there will be no more lab sessions.Note: This repository will no longer be maintained after December 15, 2024. I may post some exam review if some students reach out.
Final Words: It has been a rewarding experience having had the opportunity to be your TA. Thank you all for being such wonderful students! I wish you all the best in your future courses and endeavours 😊.
Welcome to LE/EECS 1015 Section A (LAB 04)! The goal of this repository is to help students familiarize themselves with programming in Python to solve computational problems. You will learn about data types, control structures, and data structures.
For logistical inquiries, please reach out to eecs1015fall2024@gmail.com.
| Task | Submission | Resources |
|---|---|---|
| Create an EECS activ8 account | Recorded on eClass (No Submission) | Account Creation |
| PrarieLearn Sign-Up | Recorded on eClass (No Submission) | Use your my.yorku.ca email to register with PrarieLearn |
| Set Up Coding Environment | eClass Submission | Wing IDE or PyCharm |
| General Q&A | No Submission | Ask me questions, let me know how you are doing in the course! 😊 |
Commonly Asked Questions
Where do I submit Lab 1 (Task 3)? I cannot find it on eClass!
| Task | Submission |
|---|---|
| Task 1: Follow the Steps (/30) | PrarieLearn |
| Task 2: Debugging (/30) | PrarieLearn |
| Task 3: Implementation (Donuts) (/10) | PrarieLearn |
| Task 4: Implementation (Course Grade) (/10) | PrarieLearn |
| Task 5: Implementation (BMI) (/10) | PrarieLearn |
| Task 6: Implementation (Average of Min and Max) (/10) | PrarieLearn |
Commonly Asked Questions
For Q1, do I submit all of the components?
How do I convert a data type from one type to another? (e.g., float to integer)
How do I get the maximum number from Lab 1 and Lab 2?
How do I round a float to two decimal places?
| Task | Hints | Submission |
|---|---|---|
| Task 1: Follow the Steps (/30) | N/A | PrarieLearn |
| Task 2: Debugging (XOR) (/30) | Think about logical equivalence! | PrarieLearn |
| Task 3: Implementation (Tickets) (/10) | Break it down. Think about each of the conditions in isolation first. | PrarieLearn |
| Task 4: Implementation (Phone Number) (/10) | Break it down. Think about the requirements in isolation first. | PrarieLearn |
| Task 5: Implementation (Full Name) (/4) | NA | PrarieLearn |
| Task 6: Implementation (Last Name) (/8) | Conceptually, it is straightforward, however, you must think about boundary conditions. | PrarieLearn |
| Task 7: Implementation (First Name) (/8) | Conceptually, it is straightforward, however, you must think about boundary conditions. | PrarieLearn |
If you have any other questions, please feel free to ask me during the scheduled lab session!! 🙌
Commonly Asked Questions
| Task | Hints | Submission |
|---|---|---|
| Task 1: Follow the Steps (/30) | N/A | PrarieLearn |
| Task 2: Debugging ($x^2 - y^2$) (/30) | NA | PrarieLearn |
| Task 3: Implementation (Wheels) (/10) | NA | PrarieLearn |
| Task 4: Implementation (Tickets) (/10) | NA | PrarieLearn |
| Task 5: Implementation (XOR) (/10) | NA | PrarieLearn |
| Task 6: Implementation ($x^2 - y^2$) (/10) | Write each assertion one at a time. Consider the ordering of each assertion prior to writing any code. | PrarieLearn |
Commonly Asked Questions
I am confused by the method signature. What are argument annotations? How do I specify the return type of a function?
Please see the example below.
def check_for_good_vibes(bio: str) -> bool:
return True
Essentially, the method signature tells us (1) the data type you expect for each argument, and (2) what data type the function is expected to return.
In the above example, the function check_for_good_vibes(bio) expects one argument with a string data type. It is expected to return a boolean value (True, False).
For Task 1, I have copied the code but my doctest is failing! Why is this happening to me!?
Please make sure that you have copied it exactly. Whitespaces and individual character differences from the existing code will throw errors. Doctest is very sensitive, haha.
I am totally lost for task 6: $x^2 - y^2$... Can you offer me some guidance?
Read the instructions carefully. Before you start writing any code, consider the order of assertions that makes sense to test for.
Do not try to write one single assertion to handle all of the test cases!!!! Break it down into components.
| Task | Hints | Submission |
|---|---|---|
| Task 1: Follow the Steps (/30) | N/A | PrarieLearn |
| Task 2: Debugging (/30) | N/A | PrarieLearn |
| Task 3: Implementation (Store Revenue) (/10) | N/A | PrarieLearn |
| Task 4: Implementation (Food Rivals) (/10) | N/A | PrarieLearn |
| Task 5: Implementation (Absolute Value) (/10) | N/A | PrarieLearn |
| Task 6: Implementation (Even Numbers)(/10) | N/A | PrarieLearn |
Commonly Asked Questions
I am having difficulty understanding how to solve Task 2. Why does the code not work properly? How can I fix it?
Firstly, it is important to understand that the variables x and y are global. This means that the state of the variables are shared across all of the functions and main method.
Now, given this, take a look at function1 and function2.
function1 relies on y to instantiate x.
This means that we must initialize the value of y first before we assign x.
For Task 4, how should I be decomposing the given function into smaller components? Can you give me some advice?
Try to think about the code structure in terms of maintainability. Consider if it would be easier to debug code and write unit tests if independent functions are responsible for calculating yours and the opponents scores!
Good luck, you've got this!!
| Task | Hints | Submission |
|---|---|---|
| Task 1: Follow the Steps (/30) | N/A | PrarieLearn |
| Task 2: Debugging (/30) | N/A | PrarieLearn |
| Task 3: Implementation (Leibniz) (/10) | Make sure that you enforce proper order of operations! | PrarieLearn |
| Task 4: Implementation (Caesar) (/10) | Make sure that you account for the shift going past the original end of the alphabet. In ASCII, A - Z is synonymous with 65 - 90 (ASCII). While this can be done in many ways, using a List may make things more clear. | PrarieLearn |
| Task 5: Implementation (Reverse String) (/10) | N/A | PrarieLearn |
| Task 6: Implementation (Remove Vowels) (/10) | N/A | PrarieLearn |
Commonly Asked Questions