s = 'Python' print(s.upper()) # output: PYTHON x = 100 print(x.upper()) # AttributeError: 'int' object has no attribute 'upper'
s = 'Python' print(s.upper()) # output: PYTHON x = 100 print(x.upper()) # AttributeError: 'int' object has no attribute 'upper'