Challenge questions for GWC participants. Jupyter notebook file content follows DataCamp's Introduction to Python for Data Science and Intermediate Python for Data Science. Challenge questions made by Stephanie Thiede, Rucheng Diao, Zena Lapp, Brooke Wolford, and Marlena Duda of the University of Michigan. Solutions to select challenge questions.
- Download .ipynb file to your computer
- Identify the path to your file (e.g. /GWC/Desktop/test.ipynb)
- Open the Terminal application
- Type the command below and press enter
jupyter notebook <path/to/file.ipynb>
- The file should open in a web browser
- Download the .ipynb file to your computer
- Go to jupyter.org
- Click the orange button “try it on your browser”
- Click the upload button and upload the .ipynb (you have to click upload button when it turns blue)
- Click on file name in the list of files and your notebook will open
- Basics_and_Lists_Challenge_Question_1.ipynb: practice declaring variables, accessing items in a list and printing messages to the screen by creating your own Mad Lib
- Basics_and_Lists_Challenge_Question_2.ipynb: practice accessing items in a list, type casting, and simple mathematical calculations by calculating how the price of a car depreciates over time
- Basics_and_Lists_Challenge_Question_3.ipynb: practice declaring variables, accessing items in a list and printing messages to the screen by spelling your name with a list of lists
- Basics_and_Lists_Challenge_Question_4.ipynb: practice selecting and subetting a list, and changing elements in a list by preparing a meal prep menu. Preview functions and packages by using matplotlib to visualize results
- Functions+Methods+Packages+Numpy_ChallengeProblem.ipynb: understand why numpy arrays are fast and efficient and practice using functions, methods, and packages
- matplotlib_challenge_problems.ipynb: practice using matplotlib to visualize college degrees awarded in different fields
Coming soon
- example_script_CQ.py: practice with user defined functions, data types, scripting
#open a terminal window and cd to directory with this file
#open this file in a text editor
emacs -nw example_script_CQ.py
#using keyboard arrows to navigate around and make changes, answer challenge questions
#to test the script
python example_script_CQ.py