List - 19 code

Run Settings
LanguagePython
Language Version
Run Command
thislist = ["apple", "banana", "cherry","mango","tomato"] newlist = [x if x != “apple” else "coconut" for x in thislist] print(newlist)
Editor Settings
Theme
Key bindings
Full width
Lines