Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

A simple function - use as it is

This is just a simple function. We can call it. It is just an example.

import time

def myfunc():
    print("myfunc started")
    time.sleep(1)
    print("myfunc ended")

myfunc()

The output looks simple:

myfunc started
myfunc ended