Updated: Jan 3, 2021 | Created: Dec 19, 2020 Version: 3 Copyright: open source
== License =========================== None. See Installation instructions below for a list of applications.
== Configuration Instructions ======== None. See Installation instructions below for a list of applications.
== Installation Instructions ========== Applications used for the Python_Challenge:
- Visual Studio Code to create Python files and Markdown source files
- GitBash terminal to run Python code
- Microsoft Excel to view .csv data files
- Microsoft Notepad (optional)
Similar applications may also work.
== Operating Instructions =============
-
Open \python_challenge directory.
-
Open and review the README.md file (this file) in Visual Studio Code or similar program able to read Markdown Source (.md) files.
-
Open GitBash or similar program able to read Python (.py) files. The rest of the instructions assumes using GitBash. ---Opening \PyBank files---
-
Navigate to and open the \PyBank directory.
-
Type "python main.py" in GitBash terminal window.
-
Bank summary information should display in the GitBash terminal window. Output file called "output.txt" should be created in \PyBank\Analysis directory with same bank summary information displayed in the GitBash terminal window. Note: budget_data.csv file is located in the \Resources directory and can be opened with any program able to read .csv files (e.g. Microsoft Excel). ---Opening \PyPoll files---
-
Navigate to and open the \PyPoll directory.
-
Type "python main.py" in GitBash terminal window.
-
Voting summary information should display in the GitBash terminal window. Output file called "output.txt" should be created in \PyPoll\Analysis directory with same voting summary information displayed in the GitBash terminal window. Note: election_data.csv file is located in the \Resources directory and can be opened with any program able to read .csv files (e.g. Microsoft Excel). The file is extremely large so all data may not be viewable.
-
Close the terminal window.
-
Close any other related windows or files you may have opened.
== List of Files ==================== \python_challenge README.md \PyBank Main.py \Analysis output.txt \Resources budget_data.csv
\PyPoll Main.py \Analysis output.txt \Resources election_data.csv
== Known Bugs ===================== None
== Troubleshooting =============== Resources used to build this code listed below, in addition to help and code peer review from students in class and tutor (N.Tsai) .
PyBank: https://www.programiz.com/python-programming/methods/list/append https://linuxcasual.wordpress.com/2020/03/12/python-round-and-square-brackets/ https://lerner.co.il/2018/06/08/python-parentheses-primer/ https://stackoverflow.com/questions/17658055/how-can-i-remove-carriage-return-from-a-text-file-with-python https://stackoverflow.com/questions/21019942/write-multiple-lines-in-a-file-in-python
URLs last used: December 31, 2020
PyPoll: https://stackoverflow.com/questions/12897374/get-unique-values-from-a-list-in-python https://www.programiz.com/python-programming/methods/list/append https://careerkarma.com/blog/python-nameerror-name-is-not-defined/ https://python-reference.readthedocs.io/en/latest/docs/str/formatting.html (see example 7)
URLs last used: January 3, 2021
== Contact Information =============== Colorado United States
== Random Notes =============== This is my first official Python project.