From 22635900ee61bb88d4f41f47e0b9e41f0837ebf9 Mon Sep 17 00:00:00 2001 From: Captain ALM Date: Wed, 30 Nov 2022 15:59:50 +0000 Subject: [PATCH] Test assign array to multiple values for unpacking. --- main.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/main.py b/main.py index 02ddbbb..5e0971c 100644 --- a/main.py +++ b/main.py @@ -1,5 +1,6 @@ -#Cast testing -x = y = z = str(3) -print(type(x), " : ", x) -print(type(y), " : ", y) -print(type(z), " : ", z) +#Python unpack testing +numbers = [1, 2, 3] +x, y, z = numbers +print(x) +print(y) +print(z)