EGR 103/Spring 2019/Lab 5
Errors / Additions
None yet!
5.1 Introduction
The main purpose of this lab will be to look at debugging, list comprehensions, and loading data from files. There is also some string manipulation and turtles!
5.2 Resources
See main EGR 103 page for links to these
5.3 Getting Started
Same as it ever was.
5.4 Ungraded
These problems are good ones to look at and to solve but are not a part of the graded work. Given that, you can absolutely consult with classmates about how to get the answers to these ungraded problems but you may not share those answers outside of the members of the class.
5.5 Useful Information
String and List Functions
This section discusses some of the most common functions applied to strings or to lists.
Debugging Introduction
This section is a reminder from class. See the videos at:
- Using Breakpoints in Spyder - Albert Schuelle showing how to use breakpoints
- Flow of Execution - Albert Schueller debugging a turtle program
5.6 Assignment
5.6.1
This problem takes you step by step through developing the code. Pay careful attention to the tests it recommends that you run. Put those tests in your script either in a main() function that gets called or in a selective executable based on whether __name__ is "__main__". Also look at the test code - make sure you understand what it is doing and how it works.
5.6.2
This is similar to 5.6.1. Including the part about looking at the test code and seeing how it works.