Hi everyone I'm new to Python and I'm trying to create a while loop but I'm finding some difficulties,
I've written this code:
name = 0
while name != ("1234"):
name = input("Insert name: ")
if name == ("1234"):
print("\nOk")
else:
print("\nName not entered")
But I want the code to be for name entering and every time that you don't write anything the code has to ask you to insert your name until you do it.
Thanks in advance if you can help me :)