0
List operations
Fill in the blanks to print "Yes" if the list contains 'z': letters = ['a', 'b', 'z'] _ "z" _letters: print("Yes")
1 Answer
+ 2
You need to use if condition and membership operator in
if "z" in letters:
Fill in the blanks to print "Yes" if the list contains 'z': letters = ['a', 'b', 'z'] _ "z" _letters: print("Yes")