Modules Python Namespaces:
Hello, guys!
The exercise says:
- Create a variable
numbers_b
and set it equal to a random sample of twelve numbers withinrange(1000)
.
The way I solved this is by generating a list that would contain these numbers and my solution was accepted.
Afterward, I double-checked with another solution provided by the system that also generated a list. My question is: Does random.sample() always generates a sequence that is a list? Or is, in this case, this sequence a list?
Thank you!