Dice generator, Picking number of sides in PYTHON 3.3.4
Question: Just wondering howto make a dice program:

A game uses dice with 4, 6 and 12 sides to determine various outcomes. Design,
code and test a program that will simulate throwing dice with these numbers of
sides. The user should be able to input which dice is being thrown, eg 4, 6 or
12. The program should output the dice chosen and the score, for example ‘6
sided dice thrown, score 4’ The user should be able to repeat this process as
many times as required.

THks

    
    
    import random
    dice = int(raw_input("What sided dice woud you like to roll? 4, 6 or 12?"))
    while dice !=0:
        print random.randint(1,dice)
        dice = int(raw_input("What sided dice woud you like to roll? 4, 6 or 12? press 0 to stop."))
    


Answer: You are actually trying to run Python 2 code in a Python 3 interpreter:

The statement

    
    
    print i
    

has been replaced by the function

    
    
    print(i)
    

and

    
    
    raw_input(...)
    

has been replaced by

    
    
    input(...)
    

