In Swift we can write a function with a completion block like this:
func thisNeedsToFinishBeforeWeCanDoTheNextStep(completion: () -> ()) {
print("The quick brown fox")
completion()
}
And then when we call it, we can put something inside of that block to execute once it's finished it's process:
func thisFunctionNeedsToExecuteSecond() {
print("jumped over the lazy dog")
}
What is the equivalent in Python?