#!/usr/bin/env python3 # demonstrates the use of the callback def get_square(val): """ the callback """ return val ** 2 def caller(func, val): return func(val) x=5 print('the square of {} is {}'.format(x,caller(get_square, x)))