I'm new to python but i was just testing this out and it doesn't work.
what i want is for the user to input their name and if it is a string, it will print("Hello" + name) and if it isn't a string it will print("That's not a name")
here is my code:
name = str(input("What is your name? "))
if name != str:
input("Thats not your name! Please retype your name ")
else:
print("Hello " + name)
input("Press any button to close")