python decimal shift customize : I am pretty new to python. 

I have a question about how to shift decimal based on demand. 
There is a list of amount which have two distinc values(option, amount).
The option has three numbers 0, 1, 2. 
0 means that you should shift the decimal over zero spaces (there is no amount greater than 1 dollar), 1 means that you should shift the decimal right to left by 1 place. and 2 means by 2 places.
Such as the amount is 1234, if the option is 2, then the amount should be 12.34, if the option is 1, the amount should be 1.234.

The code is below:

    amounts=[(1,2345),(0,3345),(2,1223)]
    for x in range(len(amounts):
            amount=Decimal(amounts[x][1]).shitf(-len(amounts[x][1]

But I got error and not sure how to solve this.



