Files
pythonkurs/teil4/f-string-format.py

6 lines
72 B
Python
Raw Permalink Normal View History

2023-02-19 09:54:34 +01:00
import math
print(f'Pi ist {math.pi}')
print(f'Pi ist {math.pi:.2f}')