Skip to content

not timing out #174

@pjritee

Description

@pjritee

For the while using break problem a student using windows 10 had written (thinking it was a follow on from the previous problem - i.e. still needed the number of numbers)

number_of_entries = int(input('Please enter the number of numbers: '))
count = 0
total = 0
blank = ""

while True:
    if count < number_of_entries:
        num = float(input("please enter a number"))
        total = num + total
        count += 1
        print (total / number_of_entries)

        if number_of_entries == blank:
            break


For me on Linux I get "test not run (possibly infinite loop)"
However on a Windows10 machine it just sits there - it has to be killed.
The extra problem is, whenever this problem is chosen, the code is loaded and the check is run getting the same problem back.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions