#Generate integers between 1,10. The first value should be less than the second. random.randint(1, 10)
#Generate a randomly selected element from range(start, stop, step) random.randrange(start, stop[, step])
#Generate a random value from the sequence sequence. random.choice( ['red', 'black', 'green'] ).
#Shuffles the elements in list in place, so they are in a random order. random.shuffle(list)
Recommended Python Training – DataCamp
For Python training, our top recommendation is DataCamp.
Datacamp provides online interactive courses that combine interactive coding challenges with videos from top instructors in the field.
Datacamp has beginner to advanced Python training that programmers of all levels benefit from.
Read more about: