Beispiel #1
0
def home():

    print("----------------Welcome to Consumer APP----------------")
    print("You can select one of these options:")

    while (True):

        print("1. Login\n2. Sign in\n3. Exit")
        print("-------------------------------------------------------")
        option = input()

        if option == '1':
            email = input("Please insert your e-mail: ")
            password = input("Please insert your password: "******"2":
            email = input("Please insert your e-mail: ")
            password = input("Please insert your password: "******"Please insert your name: ")
            consumer = Consumer(email, password, name)
            consumer.sign_in()

        elif option == "3":
            print("Kind Regards!")
            break

        else:
            print("Please insert a valid option.")