# do you remember str.format() stuff. # this is called F-string # why F-string? because of the leading f character preceding the string literal value = 'this one is cooler' print(f"{value}")
#!/usr/bin/env python3 val = 12.3 print(f'{val:.2f}') print(f'{val:.5f}')