python string interpolation 3 code example
Example 1: python string interpolation
name = 'World'
program = 'Python'
print(f'Hello {name}! This is {program}')
Example 2: format specificer f strings python
#!/usr/bin/env python3
val = 12.3
print(f'{val:.2f}')
print(f'{val:.5f}')