15. In functions do not directly access global variables
(Edexcel 6.6 Subprograms)
This video gives advice on function design. In particular it outlines why you should not directly access global variables from within a function. It also outlines some of the pitfalls of accessing global variables from inside a Python function.