Advertisement
neunmalelf

Untitled

Dec 1st, 2023
735
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | Fixit | 0 0
  1. def check_line(line, number_letters):
  2.     for word in number_letters:
  3.         if word in line:
  4.             print(word)
  5.  
  6. # usage
  7. line = "one and three"
  8. check_line(line, number_letters)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement