Queer European MD passionate about IT

um.py 199 B

123456789101112131415
  1. import re
  2. um_regex = re.compile(r"\bum\b", re.IGNORECASE)
  3. def main():
  4. print(count(input("Text: ")))
  5. def count(s):
  6. return len(um_regex.findall(s))
  7. if __name__ == "__main__":
  8. main()