Code Reuse and Modularity in Python
Computer programs can become long, unwieldy and confusing without special mechanisms for managing complexity. This lesson will show you how to reuse parts of your code by writing Functions and break your programs into Modules, in order to keep everything concise and easier to debug. Being able to re...
| Published in: | The Programming Historian |
|---|---|
| Main Authors: | William J. Turkel, Adam Crymble |
| Format: | Article |
| Language: | English |
| Published: |
Editorial Board of the Programming Historian
2012-07-01
|
| Subjects: | |
| Online Access: | http://programminghistorian.org/lessons/code-reuse-and-modularity |
Similar Items
Downloading Web Pages with Python
by: William J. Turkel, et al.
Published: (2012-07-01)
by: William J. Turkel, et al.
Published: (2012-07-01)
Counting Word Frequencies with Python
by: William J. Turkel, et al.
Published: (2012-07-01)
by: William J. Turkel, et al.
Published: (2012-07-01)
Creating and Viewing HTML Files with Python
by: William J. Turkel, et al.
Published: (2012-07-01)
by: William J. Turkel, et al.
Published: (2012-07-01)
http://programminghistorian.org/lessons/normalizing-data
by: William J. Turkel, et al.
Published: (2012-07-01)
by: William J. Turkel, et al.
Published: (2012-07-01)
Normaliser des données textuelles avec Python
by: William J. Turkel, et al.
Published: (2024-09-01)
by: William J. Turkel, et al.
Published: (2024-09-01)
Décomptes d'occurrences de mots en Python
by: William J. Turkel, et al.
Published: (2023-03-01)
by: William J. Turkel, et al.
Published: (2023-03-01)
Palavras-chave em Contexto (Usando n-gramas) com Python
by: William J. Turkel, et al.
Published: (2022-10-01)
by: William J. Turkel, et al.
Published: (2022-10-01)
Georges: A modular Python library for seamless beam dynamics simulations and optimization
by: Robin Tesse, et al.
Published: (2023-12-01)
by: Robin Tesse, et al.
Published: (2023-12-01)
Comparative analysis of code execution time by C and Python based on selected algorithms
by: Paweł Rysak
Published: (2023-03-01)
by: Paweł Rysak
Published: (2023-03-01)
Differentiation between wild type and heterozygous albino ball pythons (Python regius) by PCR and qPCR
by: W. Kokiattrakool, et al.
Published: (2024-10-01)
by: W. Kokiattrakool, et al.
Published: (2024-10-01)
Discrimination between wild type and heterozygous piebald ball python (Python regius) by PCR and qPCR
by: R. Kumsiri, et al.
Published: (2025-06-01)
by: R. Kumsiri, et al.
Published: (2025-06-01)
Ophidascaris sp. in an African Rock Python (Python sebae) in Ghana: A Case Report
by: Langbong Bimi, et al.
Published: (2021-06-01)
by: Langbong Bimi, et al.
Published: (2021-06-01)
Rescue and Rehabilitation of an Indian Rock Python (Python Molurus): First Case Study from Pakistan
by: Fida Muhammad Khan, et al.
Published: (2017-01-01)
by: Fida Muhammad Khan, et al.
Published: (2017-01-01)
Downloading Multiple Records Using Query Strings
by: Adam Crymble
Published: (2012-11-01)
by: Adam Crymble
Published: (2012-11-01)
mango: A modular python-based agent simulation framework
by: Rico Schrage, et al.
Published: (2024-09-01)
by: Rico Schrage, et al.
Published: (2024-09-01)
Descriptor driven concatenative synthesis tool for Python
Published: (2017-02-01)
Published: (2017-02-01)
Python for e-Commerce
by: Maria Cristina ENACHE
Published: (2023-08-01)
by: Maria Cristina ENACHE
Published: (2023-08-01)
Promoting Python Code Clubs in Greece: A Teacher Training Program and a Case Study
by: Nektarios Moumoutzis, et al.
Published: (2021-09-01)
by: Nektarios Moumoutzis, et al.
Published: (2021-09-01)
osl-ephys: a Python toolbox for the analysis of electrophysiology data
by: Mats W. J. van Es, et al.
Published: (2025-02-01)
by: Mats W. J. van Es, et al.
Published: (2025-02-01)
Réutilisation de code et modularité
by: William J. Turkel, et al.
Published: (2023-02-01)
by: William J. Turkel, et al.
Published: (2023-02-01)
Evaluation of Generative AI Models in Python Code Generation: A Comparative Study
by: Dominik Palla, et al.
Published: (2025-01-01)
by: Dominik Palla, et al.
Published: (2025-01-01)
Meta-analysis using Python: a hands-on tutorial
by: Safoora Masoumi, et al.
Published: (2022-07-01)
by: Safoora Masoumi, et al.
Published: (2022-07-01)
Capillaria spp. in a Reticulated Python (Python reticulatus) in Banyuwangi Reptile Community
by: Sayyida Kamila Dini, et al.
Published: (2022-04-01)
by: Sayyida Kamila Dini, et al.
Published: (2022-04-01)
Zernike Moments Description of Solar and Astronomical Features: Python Code
by: Hossein Safari, et al.
Published: (2023-11-01)
by: Hossein Safari, et al.
Published: (2023-11-01)
A conversion tool for translating Python-based machine learning models to structured text codes
by: Yasmin Adriane de Paula Campos, et al.
Published: (2025-02-01)
by: Yasmin Adriane de Paula Campos, et al.
Published: (2025-02-01)
GRAPE: Grammatical Algorithms in Python for Evolution
by: Allan de Lima, et al.
Published: (2022-09-01)
by: Allan de Lima, et al.
Published: (2022-09-01)
The Two Powers: How Pascal and Python Shaped Programming Education
by: Tobias Kohn, et al.
Published: (2024-12-01)
by: Tobias Kohn, et al.
Published: (2024-12-01)
GuiPy - eine Python-IDE für die Schule
by: Gerhard Röhner
Published: (2025-03-01)
by: Gerhard Röhner
Published: (2025-03-01)
Evaluating Python Static Code Analysis Tools Using FAIR Principles
by: Hassan Bapeer Hassan, et al.
Published: (2024-01-01)
by: Hassan Bapeer Hassan, et al.
Published: (2024-01-01)
PCSIM: a parallel simulation environment for neural circuits fully integrated with Python
by: Dejan Pecevski, et al.
Published: (2009-05-01)
by: Dejan Pecevski, et al.
Published: (2009-05-01)
libNeuroML and PyLEMS: using Python to combine imperative and declarative modelling approaches in computational neuroscience
by: Michael eVella, et al.
Published: (2014-04-01)
by: Michael eVella, et al.
Published: (2014-04-01)
ChatGPT, Python, and Microsoft Excel
by: Kaique Sbampato, et al.
Published: (2025-01-01)
by: Kaique Sbampato, et al.
Published: (2025-01-01)
Kreative Python-Programmierung mit Strype
by: Michael Kölling, et al.
Published: (2025-09-01)
by: Michael Kölling, et al.
Published: (2025-09-01)
A postmortem experience of Indian rock python (Python molurus molurus) that swallowed a whole barking deer
by: Amam Zonaed Siddiki, et al.
Published: (2013-06-01)
by: Amam Zonaed Siddiki, et al.
Published: (2013-06-01)
Python code smells detection using conventional machine learning models
by: Rana Sandouka, et al.
Published: (2023-05-01)
by: Rana Sandouka, et al.
Published: (2023-05-01)
Hyperspectral Python: HypPy
by: Wim Bakker, et al.
Published: (2024-08-01)
by: Wim Bakker, et al.
Published: (2024-08-01)
Using Python Modules in Real-Time Plasma Systems for Fusion
by: Nicolo Ferron, et al.
Published: (2022-09-01)
by: Nicolo Ferron, et al.
Published: (2022-09-01)
Graphen in der Schule mit Python und Jupyter-Notebooks
by: Klaus Bovermann
Published: (2024-03-01)
by: Klaus Bovermann
Published: (2024-03-01)
A Python Framework for Neutrosophic Sets and Mappings
by: Giorgio Nordo, et al.
Published: (2024-03-01)
by: Giorgio Nordo, et al.
Published: (2024-03-01)
A Python script to merge Sanger sequences
by: Cen Chen, et al.
Published: (2021-04-01)
by: Cen Chen, et al.
Published: (2021-04-01)
Similar Items
-
Downloading Web Pages with Python
by: William J. Turkel, et al.
Published: (2012-07-01) -
Counting Word Frequencies with Python
by: William J. Turkel, et al.
Published: (2012-07-01) -
Creating and Viewing HTML Files with Python
by: William J. Turkel, et al.
Published: (2012-07-01) -
http://programminghistorian.org/lessons/normalizing-data
by: William J. Turkel, et al.
Published: (2012-07-01) -
Normaliser des données textuelles avec Python
by: William J. Turkel, et al.
Published: (2024-09-01)
