Use variable names that don't conflict with builtins

Replace sum and list with total and numbers, as variable names in the loop example. This will prevent the builtins with these names being masked, which is likely to cause confusion if a beginner tries to do e.g. somvar = list() after trying this example