type' object is not subscriptable python list code example Example: 'set' object is not reversible use [] brackets in urls.py instead of {}