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
Working with Text Files in Python
by: William J. Turkel, et al.
Published: (2012-07-01)
by: William J. Turkel, et al.
Published: (2012-07-01)
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)
Setting up an Integrated Development Environment for Python (Linux)
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)
Télécharger des pages web avec Python
by: William J. Turkel, et al.
Published: (2021-06-01)
by: William J. Turkel, et al.
Published: (2021-06-01)
Download de páginas Web com Python
by: William J. Turkel, et al.
Published: (2021-03-01)
by: William J. Turkel, et al.
Published: (2021-03-01)
Normalização de Dados Textuais com Python
by: William J. Turkel, et al.
Published: (2022-10-01)
by: William J. Turkel, et al.
Published: (2022-10-01)
Setting Up an Integrated Development Environment for Python (Mac)
by: William J. Turkel, et al.
Published: (2012-07-01)
by: William J. Turkel, et al.
Published: (2012-07-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)
FluidSim: Modular, Object-Oriented Python Package for High-Performance CFD Simulations
by: Ashwin Vishnu Mohanan, et al.
Published: (2019-04-01)
by: Ashwin Vishnu Mohanan, et al.
Published: (2019-04-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)
Installing Python Modules with pip
by: Fred Gibbs
Published: (2013-05-01)
by: Fred Gibbs
Published: (2013-05-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)
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)
Downloading Multiple Records Using Query Strings
by: Adam Crymble
Published: (2012-11-01)
by: Adam Crymble
Published: (2012-11-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)
Quail: A lightweight open-source discontinuous Galerkin code in Python for teaching and prototyping
by: Eric J. Ching, et al.
Published: (2022-01-01)
by: Eric J. Ching, et al.
Published: (2022-01-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)
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)
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)
Similar Items
-
Working with Text Files in Python
by: William J. Turkel, et al.
Published: (2012-07-01) -
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) -
Setting up an Integrated Development Environment for Python (Linux)
by: William J. Turkel, et al.
Published: (2012-07-01)
