It won't work!
def get_user_choice():
from string import digits
user_choice = input('Type a number, 1 to 6.\n\n')
if user_choice == '':
print 'Not a valid choice.'
raw_input()
main()
check_if_true(user_choice)
def check_if_true():
import random
comp_choice = random.randint(1,6)
if comp_choice != userchoice:
print 'The computer won :('
return comp_choice, user_choice
else:
print 'You Won!'
return user_choice, comp_choice
raw_input()
main()
def main():
get_user_choice()
return
while 1:
main()