summaryrefslogtreecommitdiff
path: root/progs/unparsable_programs/a545.py
blob: 1f2f494efac4a9cbe2631a8627d19917d2300b3f (plain)
1
2
3
4
5
6
7
import re
def find_character(string):
  uppercase_characters = re.findall(r"[A-Z]", string) 
  lowercase_characters = re.findall(r"[a-z]", string) 
  numerical_characters = re.findall(r"[0-9]", string) 
  special_characters = re.findall(r"[, .!?]", string) 
  return uppercase_characters, lowercase_characters, numerical_characters, special_characters