$
py3
Source:
from random import sample
print(sample(range(10), 5))
Result:
[1, 2, 8, 9, 4]
Size: a a a
$
py3
from random import sample
print(sample(range(10), 5))
[1, 2, 8, 9, 4]
QZ
А
$
VA
$
QZ
$
QZ
$
py3
a = range(5)
b = range(5),
print(type(a), type(b))
print('в чем подвох?)')
<class 'range'> <class 'tuple'>
в чем подвох?)
VA
$
$
$
QZ
VA
$
py3
a = range(5)
b = range(5),
print(type(a), type(b))
print('в чем подвох?)')
<class 'range'> <class 'tuple'>
в чем подвох?)
$