Skip to content

Instantly share code, notes, and snippets.

@AliAlmasi
Created July 11, 2022 22:12
Show Gist options
  • Save AliAlmasi/0c9aadf4e843cfce3d84dd7cbbd2d25b to your computer and use it in GitHub Desktop.
Save AliAlmasi/0c9aadf4e843cfce3d84dd7cbbd2d25b to your computer and use it in GitHub Desktop.
import time
def nam_query():
nam = input("Enter Your First Name: ")
if len(nam) == 0:
print("So, you're telling me you don't have a name?")
time.sleep(1)
nam_query()
elif len(nam) > 16:
print("Whoa, How do you remember your name LOL")
time.sleep(1)
nam_query()
elif len(nam) < 3:
print("Your name is too short.")
time.sleep(1)
nam_query()
else:
print("Beautiful name!")
time.sleep(0.75)
print(f"Welcome, {nam} :)")
nam_query()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment