import random print(random.randrange(3, 9)) #Will print a random number between 3 and 9. Can pick 3 but cannot pick 9. 9 is excluded.