Test assign array to multiple values for unpacking.

This commit is contained in:
Captain ALM 2022-11-30 15:59:50 +00:00
parent 618489a23b
commit 22635900ee
Signed by: alfred
GPG Key ID: 4E4ADD02609997B1

11
main.py
View File

@ -1,5 +1,6 @@
#Cast testing #Python unpack testing
x = y = z = str(3) numbers = [1, 2, 3]
print(type(x), " : ", x) x, y, z = numbers
print(type(y), " : ", y) print(x)
print(type(z), " : ", z) print(y)
print(z)