List operations | Sololearn: Learn to code for FREE!

0

List operations

Fill in the blanks to print "Yes" if the list contains 'z': letters = ['a', 'b', 'z'] _ "z" _letters: print("Yes")

4/13/2018 2:57:45 PM

Tayub Ahmed

1 Answer

New Answer

+2

You need to use if condition and membership operator in if "z" in letters: