예제 #1
0
def main():
    try:
        length = inu.putPosFloat(
            'Please enter the length of your quadralateral')
        width = inu.putPosFloat('Please enter the width of your quadralateral')
        perimeter = calculate_perimeter(length, width)
        display_output(perimeter)
        not_again()
    except Exception as e:
        print(e)
예제 #2
0
def get_student_score(student):
    return [
        inu.putPosFloat(
            f'enter score for student #{student +1} quiz # {quiz+1}:')
        for quiz in range(
            inu.posPutInt(
                f"please enter the number of quizzes for student # {student +1}"
            ))
    ]
예제 #3
0
def get_Input():# this is only to gather input allows for varying length of tests
    return np.array([inu.putPosFloat(f'please enter test {i+1} ')for i in range(inu.posPutInt("how may test would you like to enter?"))])
예제 #4
0
def get_Input(): #formal way to define a function
    return inu.putPosFloat('enter a positive valid (floating point)')