Abstract

AbstractChapter four introduces concepts from Object-Oriented Programming (OOP). The chapter describes what an object is and how objects are used in Python programming. Objects are so integral to Python that readers are actually introduced to OOP starting in the first chapter, but chapter four is more intentional about understanding the OOP paradigm.The chapter introduces OOP to the reader by introducing turtle graphics programming. Learning turtle graphics is both fun and challenging with instant feedback available from the graphics that the reader programs. OOP is further emphasized by learning to read XML files. XML files are formatted data files with a structure that can be parsed using an XML parser. Readers learn what a parser is and how to use it to parse XML files.Finally, XML processing and turtle graphics are combined to plot exercise data captured from an exercise computer, tying the use of OOP in XML processing and graphics programming together. In addition, dictionary objects in Python are also introduced as the last built-in data type covered in the text.KeywordsMaximum Heart RateAccessor MethodPractice ProblemWorkout DataMutator MethodThese keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.