Created
July 11, 2022 22:12
-
-
Save AliAlmasi/0c9aadf4e843cfce3d84dd7cbbd2d25b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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