>>> from __future__ import print_function
>>> numbers = [3.7832, 8.5, 0, 1.9]
>>> for x in numbers:
... print(x, end=" ")
... try:
... print(1.0 / x)
... except ZeroDivisionError:
... print('*** no inverse ***')
...
3.7832 0.2643264960879679
8.5 0.11764705882352941
0 *** no inverse ***
1.9 0.5263157894736842
>>>