السلام عليكم
ده مسائل من موقع codwars
Create a function that always returns True/true for every item in a given list.
However, if an element is the word 'flick', switch to always returning the opposite boolean value.
وده الحل بناعي , بس بيضهر خطاء علي الموقع codewars
boo = 'True'
for row in range(len(arr)):
if 'flick' in arr[row]:
boo = 'False'
arr[row] = boo
else:
arr[row] = boo
print(arr)