format specifiers in python 3 code example
Example 1: python format specifier
from datetime import datetime
'{:%Y-%m-%d %H:%M}'.format(datetime(2001, 2, 3, 4, 5))
Example 2: new python string formatting
>>> f'Hello, {name}!'
'Hello, Bob!'
from datetime import datetime
'{:%Y-%m-%d %H:%M}'.format(datetime(2001, 2, 3, 4, 5))
>>> f'Hello, {name}!'
'Hello, Bob!'