list object no attribute capitalize() , title() and upper()
stackoverflow.com › questions › 50249740May 09, 2018 · So you have to do something such as i.upper() and not L.upper().The list (L in this case) has no attribute .upper(). The only thing with that attribute are the individual elements in the list (i in this case). Here is the proper code that will get you the output that you are looking for. L = ["hello", "and", "goodbye"] L_upper = [i.upper() for i in L] print(L_upper) ['HELLO', 'AND', 'GOODBYE']
AttributeError: 'int' object has no attribute 'upper' for az ...
github.com › Azure › azure-cliNov 14, 2019 · 'int' object has no attribute 'upper' Traceback (most recent call last): File "/opt/az/lib/python3.6/site-packages/knack/cli.py", line 206, in invoke cmd_result = self.invocation.execute(args) File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 603, in execute raise ex File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 661, in _run_jobs_serially results.append(self._run_job(expanded_arg, cmd_copy)) File "/opt/az/lib/python3.6 ...