Timeline for answer to Rate my first python prime checker by Samwise
Current License: CC BY-SA 4.0
Post Revisions
2 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 17, 2020 at 22:40 | comment | added | AJNeufeld |
exit() should be avoided in Python programs, as it immediately exits the Python interpreter, which makes writing Unit Test code not possible in pure Python. Instead, use a break statement and a while : ... else: construct.
|
|
| Feb 17, 2020 at 22:22 | history | answered | Samwise | CC BY-SA 4.0 |