Question: Python 2.7.3

```
>>> print '%2.2f' % 0.1
0.10

```

The documentation I have says that type % should be the same as type f except that the input is multiplied by 100.

```
>>> print '%2.2%' % 0.1
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: not all arguments converted during string formatting

```

Answer: 
Came across this question. In Python 3 you can simply use fstrings (thus avoiding the `.format`) in a similar way as described above. The format is:

```
print(f"{your_number:.n_decimals%}")

```

Eg.

```
>>> print(f"{0.0350:.2%}")
3.50%

```
```
print '%2.2%' % 0.1

```

Tells it that there are 2 placeholders in format string (%), so you have a complain