Test common data types.
This commit is contained in:
parent
cc050dad9f
commit
5545cd314c
28
main.py
28
main.py
@ -1,10 +1,18 @@
|
|||||||
#Global test
|
#Test most default useable datatypes
|
||||||
x = 0
|
x = [
|
||||||
print(x)
|
1,
|
||||||
|
1.1,
|
||||||
def myfunc():
|
1j,
|
||||||
global x
|
True,
|
||||||
x = 1
|
[1],
|
||||||
print(x)
|
(1),
|
||||||
|
[1],
|
||||||
myfunc()
|
{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))
|
||||||
|
Loading…
Reference in New Issue
Block a user