When I type help(\'string\') in the python interpreter I get information about the string class. There,upper() is indicated as a function. Yet I can on
help(\'string\')
upper()
This is because 'string' is a string. So is 'list'
'string'
string
'list'
To get a similar result for lists, try help([])
lists
help([])