From d59e9c286df82295dd632c6a1ce7c98737c849ea Mon Sep 17 00:00:00 2001 From: Dilbert004 Date: Tue, 24 Feb 2026 17:20:27 +0000 Subject: [PATCH] Add function to append item to list --- random.py | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 random.py diff --git a/random.py b/random.py new file mode 100644 index 0000000..a0adcea --- /dev/null +++ b/random.py @@ -0,0 +1,3 @@ +def add_item(item, items=[]): + items.append(item) + return items