Test common data types.

This commit is contained in:
Captain ALM 2022-11-30 16:23:05 +00:00
parent cc050dad9f
commit 5545cd314c
Signed by: alfred
GPG Key ID: 4E4ADD02609997B1

28
main.py
View File

@ -1,10 +1,18 @@
#Global test
x = 0
print(x)
def myfunc():
global x
x = 1
print(x)
myfunc()
#Test most default useable datatypes
x = [
1,
1.1,
1j,
True,
[1],
(1),
[1],
{1},
{0:1},
frozenset({1}),
"hell",
b"heelo",
None
]
a,b,c,d,e,f,g,h,i,j,k,l,m = x
print(type(a),type(b),type(c),type(d),type(e),type(f),type(g),type(h),type(i),type(j),type(k),type(l),type(m))