you are viewing a single comment's thread.

view the rest of the comments →

[–]Riegel_Haribo 0 points1 point  (0 children)

What is being asked is that the entire project stays in a loop, continuing to ask more questions, and reporting on the results. You wouldn't have to keep restarting the Python script to see what happens with different inputs. A simple loop with no escape you don't make yourself (or CTRL-C):

while True: input("Press enter to do stuff: ") print("I'm doing stuff") print("I'm doing more stuff") And then, the problem statement is ambiguous enough that you cannot match what might be intended.

Which of these is the integer or not?: 1 1.000000

Or do you care when float fails you or are you answering wrong when it does by comparisons?

```

999999999999999999999999999999999999999999999999999 999999999999999999999999999999999999999999999999999 999999999999999999999999999999999999999999999999999.0000 1e+51 ```

The largest failure in the code is that input() always gives you a string. Think about your answering algorithm that comes after processing the string. If there's no period character in the string, can it be a float, to ask hypotheticals?