Skip to content

Instantly share code, notes, and snippets.

@copocaneta
Last active December 9, 2024 23:02
Show Gist options
  • Save copocaneta/2de43f55f9c0926aa5ce37731146ae08 to your computer and use it in GitHub Desktop.
Save copocaneta/2de43f55f9c0926aa5ce37731146ae08 to your computer and use it in GitHub Desktop.
Improve this code by eliminating duplication
# Repetitive code without functions
print("Processing data for client A")
# ... specific processing for client A ...
print("Saving results for client A")
print("Processing data for client B")
# ... specific processing for client B ...
print("Saving results for client B")
print("Processing data for client C")
# ... specific processing for client C ...
print("Saving results for client C")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment