i'm learning how to write inline code right now i came across this problem
Write an inline
for loopin python to remove all the numbers & capital letters from this list of codes and return a clean list.Ex1: input_list = ['1aGpple', '2Uboy', '3cat4', '5li3on3']output:['apple', 'boy', 'cat', 'lion']
try 1
a=['1aGpple', '2Uboy', '3cat4', '5li3on3']
t=[c for c in [a[i] for i in range(len(a))] if c.isupper()]
print(str(t))
try 2
a=['1aGpple', '2Uboy', '3cat4', '5li3on3']
t=[ a[i] for i in range(len(a))&&c for c in a[i] if c.isupper()]
if you have good documentation to write inline code please provide me