random is the module which you import or import a class, method from it.
Yes you can do for another method the same or for few of them separated with a comma.
That way you import only what you need instead of the whole module
You can use it like this too
https://python-forum.io/Thread-Basic-Modules-part-1
https://python-forum.io/Thread-Basic-Modules-part-2
https://python-forum.io/Thread-Basic-Modules-part-3
Yes you can do for another method the same or for few of them separated with a comma.
That way you import only what you need instead of the whole module
You can use it like this too
import random # module method # | | # | | result = random.randint(1, 6)You import here the whole random module and can use all of its classes and methods: module.method(), module.class.method()
https://python-forum.io/Thread-Basic-Modules-part-1
https://python-forum.io/Thread-Basic-Modules-part-2
https://python-forum.io/Thread-Basic-Modules-part-3