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()
You mean to do help('str'), not help('string'). str is a type, string is a module providing functions for working with strings.
help('str')
help('string')
str
string