Lists Operations | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Lists Operations

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

16th Aug 2020, 1:43 PM
Jash Sampat
1 Answer
+ 1
if z in letters: try this
16th Aug 2020, 1:52 PM
Allamprabhu Hiremath