Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seeing how this block repeats in a similar way throughout this file, consider creating a data structure to assist with the filepaths and chart types here so you may use looping techniques and organize the output locations in one spot together. Doing this might reduce the amount of code required to achieve your output and simplify areas where you may need to make additions while retaining common approaches. #32

Open
MikeLippincott opened this issue May 19, 2023 · 0 comments

Comments

@MikeLippincott
Copy link
Member

          Seeing how this block repeats in a similar way throughout this file, consider creating a data structure to assist with the filepaths and chart types here so you may use looping techniques and organize the output locations in one spot together. Doing this might reduce the amount of code required to achieve your output and simplify areas where you may need to make additions while retaining common approaches.

For example:

example = {
    "mountain" : "./mountain_path",
    "prairie" : "./prairie_path"
}

for landscape, path in example.items():
    print(landscape, path)

Originally posted by @d33bs in #25 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant