Пример #1
0
def introduce_name(state):
    string = "My name is {name}."
    print(vp.interpret_pronunciation(vp.expand(string, my_dict)))
    if state.flag:
        introduce_name_1()
        state.current_node = Name_1
    return state
Пример #2
0
def introduce_age(state):
    string = "I am {age} years old."
    print(vp.interpret_display(vp.expand(string, my_dict)))
    state.user_age = input("How old are you?\n")
    """
    if int(state.user_age) > my_age:
        state.flag = True
    else:
        state.flag = False
    """
    return state
Пример #3
0
def bye(state):
    string = "{bye}"
    print((vp.interpret_display(vp.expand(string, my_dict))))
    state.running = False
    return state
Пример #4
0
def introduce_school(state):
    string = "I'm now studying at {school}."
    print(vp.interpret_display(vp.expand(string, my_dict)))
    return state
Пример #5
0
def introduce_name_1():
    string = "You can also call me {nickname}."
    print(vp.interpret_display(vp.expand(string, my_dict)))
Пример #6
0
def print_hi(state):
    string = "Hi, {greeting} What do you want to know about me?"
    print(vp.interpret_display(vp.expand(string, my_dict)))
    return state