Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/checkIfName.py
Original file line number Diff line number Diff line change
@@ -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