From 5545cd314c1a69040bbfed4a267d7baabe444422 Mon Sep 17 00:00:00 2001 From: Captain ALM Date: Wed, 30 Nov 2022 16:23:05 +0000 Subject: [PATCH] Test common data types. --- main.py | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/main.py b/main.py index 5ff5261..a8bafff 100644 --- a/main.py +++ b/main.py @@ -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))