Welcome to the Treehouse Community
Looking to learn something new?
Jason Williams453 Points
Python Basics, Stage 6 Challenge
okay, I'm a newbie and I'm struggling with this challenge. I've tried all ways to solve this and can't seem to manage it. I really need a hint because I don't know what I'm missing. Thanks, Jason
import random def random_num(num): random.randint(1,num) random_num(6)
You're getting the random number but you're not doing anything with it.
The challenge is asking you to have the function
return that random number.
Also, in general you don't have to call your functions you only have to write them. The code challenge will call your functions to test them.