We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a1bcba commit ec2bb8bCopy full SHA for ec2bb8b
1 file changed
Other Programs/Name.py
@@ -1,12 +1,8 @@
1
import re
2
3
-
4
def is_valid_name(name):
5
- # This will only allow letters, spaces, hyphens, and apostrophes
6
return re.fullmatch(r"[A-Za-z\s\-']+", name) is not None
7
8
9
-# 👤 Collects and validates the users input!
10
surname = input("Enter your surname: ")
11
forename = input("Enter your forename: ")
12
0 commit comments