Do a python tutorial on methods, classes and objects, there will be loads of them and one will click with you.
Methods, like functions in some languages, a group of statements designed to do something, you call the method each time you want to do the thing, eg calculate_mpg(miles, fuel_used)
Classes, a group of methods and property definitions, to group related operations and attributes. Heartbeat class contains a property called pulse, methods called set_pulse, get_pulse, calcFitness
Object, an actual instance of that class, you an have a bunch of objects, like Doctor Who would have 2 heartbeat objects perhaps.
Create an object of classHeartbeat:
Heartbeat myHeartbeat = Heartbeat()
call a method on the object:
myHeartbeat.set_pulse(120)
this is the tip of the iceberg but I’d say it’s the bare minimum to get started.
anyway someone will pull that definition apart rapidly and I hope my boss ain’t reading, do a python tutorial :)