# How do I shift the decimal place in Python?

The same way you do in math

```
a = 0.01;
a *= 10; // shifts decimal place right
a /= 10.; // shifts decimal place left
```

```
def move_point(number, shift, base=10):
"""
>>> move_point(1,2)
100
>>> move_point(1,-2)
0.01
>>> move_point(1,2,2)
4
>>> move_point(1,-2,2)
0.25
"""
return number * base**shift
```