Welcome to the Treehouse Community
Looking to learn something new?
I am having problem with this problem import random radon_num(x) return random.randint(1,x)
So the code challenege is to import random library and return randint between 1 and the input number. My code is import random randon-num(x) returm random.randint(1,x)
import random random_num(x) return random.randint(1,x)
Kenneth LoveTreehouse Guest Teacher
You can't do a
return outside of a function. You need to actually create a function for this challenge.
you forgot the def.
with that, you are now defining a function. Don't forget to indent the code block of the function.