Skip to content

Instantly share code, notes, and snippets.

@savolla
Created February 25, 2017 21:46
Show Gist options
  • Save savolla/d240b87f6f46dc49607a5ac8ccf18b5f to your computer and use it in GitHub Desktop.
Save savolla/d240b87f6f46dc49607a5ac8ccf18b5f to your computer and use it in GitHub Desktop.
not a big deal..
#functions
def height():
print("please enter your height in cm format")
height = int(input())
if height < 150:
print("too short..")
elif height > 180:
print("very tall..")
else:
print("normal")
#real program
print("""
=================================
welcome to test system
please enter your name and then
your password.
=================================
\n""")
name = input("enter your name: ")
if name == "savolla":
print("are you sure about you are savolla?")
password = input("password: ")
if password == "123":
print("welcome back savolla!\n\n")
height()
else:
print("of course you are not.")
else:
print("wrong answer.")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment