Abstract
Codes covered in Basic Python were generally limited to short snippets. Intermediate Python will cover concepts that will allow codes to be reused such as developing functions, classes, objects, modules, and packages. Functions are callable modules of code that are written to take in parameters to perform a task and return a value. Decorators and closures can be applied to modify function behaviors. Objects encapsulate both variables and functions into a single entity which are defined in classes. A module in Python is a set of classes or functions that encapsulate a single, and related, set of tasks. Packages are a set of modules collected together into a single focused unit.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2022 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.
About this chapter
Cite this chapter
Teoh, T.T., Rong, Z. (2022). Intermediate Python. In: Artificial Intelligence with Python. Machine Learning: Foundations, Methodologies, and Applications. Springer, Singapore. https://doi.org/10.1007/978-981-16-8615-3_5
Download citation
DOI: https://doi.org/10.1007/978-981-16-8615-3_5
Published:
Publisher Name: Springer, Singapore
Print ISBN: 978-981-16-8614-6
Online ISBN: 978-981-16-8615-3
eBook Packages: Computer ScienceComputer Science (R0)