30-Days-Of-Python icon indicating copy to clipboard operation
30-Days-Of-Python copied to clipboard

Update 03_operators.md

Open Tasnimsomo opened this issue 2 months ago • 0 comments

Summary

Fixed a small issue in the comparison operator examples. The original text described the not in operator but didn’t include a working example or had a typo.

Changes Made

  • Added missing example for not in comparison
  • Corrected description from (x in y) to (x not in y)

Why This Change Was Needed

This makes the tutorial more accurate and consistent. The previous version could confuse beginners since the explanation didn’t match the examples.

Example Output

print('B not in Asabeneh:', 'B' not in 'Asabeneh')  # True

Tasnimsomo avatar Oct 06 '25 13:10 Tasnimsomo