how to declare global variable in python that can be used in every method code example Example: how to declare global variable in python global n n = 'whatever'