(Feb-24-2018, 07:33 AM)Tim Wrote: the fourth line in the output shouldn't appear. In other word, even if we remove "pass" the output remains the same.
I think you mix
pass
with continue
for letter_num, letter in enumerate("Howdy!", start=1): if letter == "w": continue print('Letter ', letter_num, ' is ', letter)
Output:Letter 1 is H
Letter 2 is o
Letter 4 is d
Letter 5 is y
Letter 6 is !