I want the system to check to make sure a name is entered. If it is it will return Hello name I hope you enjoy this quiz. If not it gives an error message to say "this field cannot be left blank".
This gets the user to enter their name
def hello():
name=str(input("Please enter your name : "))
if name == (""):
print ("please enter your name this field cannot be blank")
while name == (""):
return
name=str(input("Please enter your name : "))
print("hello " + str(name))
print ("I hope you enjoy this quiz")
hello()