Skip to content

finish initial setup of materials #1

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

Merged
merged 23 commits into from
Oct 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
e3bb8bb
initialize intro notebook
iamdonovan Oct 5, 2023
620ff2d
initialize plotting notebook
iamdonovan Oct 5, 2023
fd6e226
add blank files for git exercise
iamdonovan Oct 6, 2023
5f77dbc
continue adding to intro python notebook
iamdonovan Oct 6, 2023
2f88ad1
copy convert_metoffice.py from intro-to-r workshop
iamdonovan Oct 6, 2023
eedf3d1
copy armagh met office data from intro-to-r workshop
iamdonovan Oct 6, 2023
c9a9375
continue developing plotting exercise using seaborn
iamdonovan Oct 6, 2023
9608f4a
add data, finished notebook for pandas exercise
iamdonovan Oct 8, 2023
f7d55e0
add openpyxl as a dependency
iamdonovan Oct 8, 2023
85ed2c6
finish notebook for plotting exercise
iamdonovan Oct 8, 2023
69157e4
add blank notebook, data for stats exercise
iamdonovan Oct 8, 2023
4048001
add blank notebook for regression exercise
iamdonovan Oct 8, 2023
a713ab6
fill out README, including binder link and link to course homepage
iamdonovan Oct 9, 2023
6539c25
copy data from session 5 folder
iamdonovan Oct 9, 2023
6659bf7
finish regression exercises
iamdonovan Oct 9, 2023
4df228b
add statsmodels as a dependency
iamdonovan Oct 9, 2023
c4216e0
continue working on stats notebook
iamdonovan Oct 9, 2023
7b7ce37
switch to using pingouin
iamdonovan Oct 9, 2023
7fee577
replace statsmodels with pingouin
iamdonovan Oct 9, 2023
b6e3d11
continue adding to stats notebook
iamdonovan Oct 10, 2023
4d9a2d7
add bug-filled script for debugging exercise
iamdonovan Oct 10, 2023
4b77b2f
finish stats notebook
iamdonovan Oct 10, 2023
27b954c
finish intro notebook
iamdonovan Oct 10, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added 01.git-intro/ingredients.txt
Empty file.
Empty file added 01.git-intro/instructions.txt
Empty file.
18 changes: 18 additions & 0 deletions 02.python-intro/debugging_exercise.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# import random

# pick a random number for the user to guess
rand = random.randint(1, 100)

print('Guess a number between 1 and 20.')
guess = int(input()) # number needs to be an integer

while guess != rand: # if the guess is not equal to the random number, you have to guess again
if guess > rand: # if the guess is too high, tell the user.
print('Too low. Guess again.')
else: # if the guess is too low, tell the user.
print('Too high. Guess again.')

print('Enter a new guess: ')
guess = input()

print(f'You got it! The number was {rand}')
Loading