To create a procedure, first give the procedure a name. A good name for the player information procedure could be ‘u岹ٱ徱’. Python uses the statementThe smallest element of a programming language which expresses an action to be carried out. def to name a procedure. Note the brackets at the end of the procedure’s name:
def update_display():
The procedure codeInstructions in a computer program. is then written indented beneath the def statement: