Brackets at the end of a .upper


#1

Why do you need the brackets at the end in

print string.upper()

Strings and Console Output


#2

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.


#3

Thank you now I understand


#4