PortableBalanceLab / PBL

Learn how to create your own balance lab using python and a Raspberry Pi
4 stars 1 forks source link

Reformat jupyter code blocks for readability #17

Closed adamkewley closed 1 year ago

adamkewley commented 1 year ago

Code blocks in some of the lecture notes might benefit from some cleanups. E.g. here's one from L1:

# Test yourself
parameters_participants = {'PAR01':{'weight':59, 'age': 24, 'height':172},'PAR02':{'weight':59, 'age': 24, 'height':172}, \
                           'PAR03': {'weight':59, 'age': 24, 'height':172}}

## insert your own code here ##

Which could be (in my subjective opinion):

# Test yourself
parameters_participants = {
    'PAR01': {'weight': 59, 'age': 24, 'height': 172},
    'PAR02': {'weight': 59, 'age': 24, 'height': 172},
    'PAR03': {'weight': 59, 'age': 24, 'height': 172},
}

## insert your own code here ##

Obviously, this all comes down to taste, though :wink:.