Reputation: 11
I want to work module random,choice in python so i entered code written the book but it dosent work i want see print random number
i don't know why it dosen't work i entered as it is saw book and i dont enter any ohter code
i am beginner python,english sorry
Upvotes: 1
Views: 92
Reputation: 6138
You should pass in a list ([]
) rather than a set ({}
) for random.choice function as the argument requirement:
random.choice([1,2,3,4,5,6])
Upvotes: 2