Brackets at the end of a .upper


Why do you need the brackets at the end in

print string.upper()

Strings and Console Output


Hi @methodace53909,

.upper() is a method, When calling a method or function in Python, we need to pass it an argument list enclosed in parentheses, even if that argument list is empty.


Thank you now I understand