hello
whats up
```
# Testing length of firstName and lastName
def set_name(firstName, middleName, lastName):
if len(firstName)>3 and len(firstName) <30:
return True
if len(lastName)>3 and len(firstName) <50:
return Ture
```
function returns TRUE is valid and FALSE if invalid
set_name(Javin, Keanu, Mamutil) = TRUE
set_name(Ja,Keanu,Mamutil) = False
set_name(Mr&John, Smith) = FALSE
set_name(Alex, Christian, Ly) = FALSE
set_name(Alex-John, Tree, Jake Smith) = TRUE
set_name(Jake, Tsang) = TRUE
set_name(Andy, Harry, Park) = FALSE
set_name(abcdefghijklmnopqrstuvwxyzabcdefg,L,Chen) = False
set_name(Kell1, Zhang) = False
set_name(kelly, Zhang2) = False
set_name(Jia-le,L,Chen) = True
set_name(Jiale,L,abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz) = False
set_name(Bingyu, , Yang)= Ture
set_name(abcdefghijklmnopqrstuvwxyzabcde, abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz) = FALSE
# to test the type of input of lastName
```
counter = 0
for item in string:
if item.isalpha() == False and item != '-' and item != ' ':
counter +=1
if counter == 0:
return True
```
# to test the type of input of firstName
```
counter = 0
for item in string:
if item.isalpha() == False and item != '-':
counter +=1
if counter == 0:
return True
```