I'm stumped. I looked through my code a bunch of times and can't find out why I'm getting an invalid syntax for this bit of code. Any help would be greatly appreciated! Thanks.
def nameReverse():
name = str(input("Enter your full name: "))
testName = name.split()
if len(testName)>1:
firstName=testName[0]
lastName=testName[1]
print (lastName,firstName)
def main():
nameReverse()
main()