I have a list
nums = ['Aero', 'Base Core Newton', 'Node']
I want to replace the string Base with Fine i.e Fine Core , i tried the below code, but it dint work
nums = ['Aero', 'Base Core Newton', 'Node']
nums1=[]
for i in nums:
if 'Base' in i:
i.replace('Base','Fine')
nums1.append(i)
print(nums1)
How can i make this work
nums1.append(i.replace('Base','Fine'))