#!/usr/bin/env python3 """ Demonstrates an annoying feature of mutable defaults vs immutable defaults. """ def ChangeList(list = []): list.append("Fred was here") return list if __name__ == "__main__": print(ChangeList()) print(ChangeList())