diff --git a/src/checkIfName.py b/src/checkIfName.py index 30ca82c..b78c8a4 100644 --- a/src/checkIfName.py +++ b/src/checkIfName.py @@ -1,3 +1,7 @@ #Check if the string consists of two words each starting with a capital letter def check_if_name(str): - pass + tmp = str.split() + if (len(tmp) == 2 and tmp[0][0].isupper() and tmp[1][0].isupper()): + return True + return False +