Example #1
0
def main(args):
    """

    :param args:
    :return:
    """
    # Write your program here
    name = prompt_for_input('Enter your name: ')
    print('Your name is {0}, right?'.format(repr(name)))
Example #2
0
import sys

from utilities import prompt_for_input

print("Hello and welcome to the all new... Vincent quiz!!!")
error = 0
while True:
    name = prompt_for_input("Okay. To start off, what is Vincent's sisters first name?")
    if name.lower() == "jasmine":
        break
    else:
        print("Try again")
        error = error + 1

while True:
    family = prompt_for_input("Good work so far! Now... how many people are there in his family?")
    if family == '4':
        break
    else:
        print("You'll get it if you just keep trying.")
        error = error + 1

while True:
    Cont = prompt_for_input("Nice! Now, does Vincent want to be a construction worker?")
    if Cont.lower() == 'no':
        break
    else:
        print("What? Are you dumb?")
        error = error + 1

while True:
Example #3
0
import sys

from utilities import prompt_for_input

print("Hello and welcome to the all new... Vincent quiz!!!")
error = 0
while True:
    name = prompt_for_input(
        "Okay. To start off, what is Vincent's sisters first name?")
    if name.lower() == "jasmine":
        break
    else:
        print("Try again")
        error = error + 1

while True:
    family = prompt_for_input(
        "Good work so far! Now... how many people are there in his family?")
    if family == '4':
        break
    else:
        print("You'll get it if you just keep trying.")
        error = error + 1

while True:
    Cont = prompt_for_input(
        "Nice! Now, does Vincent want to be a construction worker?")
    if Cont.lower() == 'no':
        break
    else:
        print("What? Are you dumb?")