Python - Modules and Code Organization
Find the error in this code:
import random print(random.rand(5))
import random print(random.rand(5))
random module, so no import error.random module does not have a function named rand. The correct function is randint or random.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions