Beginning guessing game in Python
Good job for a first experience in Python! You can improve your code a little by looking at these recommendations:


To choose a random integer, you could simply use random.randrange(0,11)
You should probably not import at the function level either, try writing your import statements at the top of your file.
The game() function is called recursively; you shouldn't do that. You could have an infinite loop that fires game() back when exited.
Personally, I wouldn't use lists with "yes" and "no" values, try something like

if "y" in choice.lower():
    return True 
else:
    return False

Last but not least, you should check if the number entered is an integer. If it is not, ask the user to enter a valid integer until they do so.