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
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)