python list format code example
Example 1: String Formatting with the % Operator
>>> name = 'Bob'
>>> 'Hello, %s' % name
"Hello, Bob"
Example 2: fprmaatting lists python
>>> print('Skillset: {0[1]}'.format(langs))
Skillset: C++
>>> name = 'Bob'
>>> 'Hello, %s' % name
"Hello, Bob"
>>> print('Skillset: {0[1]}'.format(langs))
Skillset: C++