Test randrange.
This commit is contained in:
parent
5545cd314c
commit
7c799b1650
21
main.py
21
main.py
@ -1,18 +1,3 @@
|
|||||||
#Test most default useable datatypes
|
import random
|
||||||
x = [
|
#randrange(lw_incl,up_excl)
|
||||||
1,
|
print(random.randrange(0,10))
|
||||||
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))
|
|
||||||
|
Loading…
Reference in New Issue
Block a user