Timeline for Python beginner's body fat calculator
Current License: CC BY-SA 3.0
10 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 19, 2017 at 20:11 | comment | added | Superspork | @StephenRauch I fixed the response to explain better | |
| Apr 19, 2017 at 20:10 | history | edited | Superspork | CC BY-SA 3.0 | added 912 characters in body |
| Apr 19, 2017 at 18:56 | comment | added | Stephen Rauch | Thanks for the feedback, but you should edit this explanation into the answer so that it is helpful for future readers. Thanks. | |
| Apr 19, 2017 at 18:53 | comment | added | Superspork | @200_success I wrote this on Pythonista on my phone, so indentation may be off compared to desktop version. Also, I added the notes explaining changes after I verified the function worked and the notes are throwing me the indentation errors. Remove the triple quote notes and it all runs fine. | |
| Apr 19, 2017 at 18:51 | comment | added | Superspork | @StephenRauch It's fewer lines and less redundancy. For example, instead of rewriting each "again.lower() ==" line, it puts all desirable responses into a list and checks if the response is in the list. Unless 'No' is very important, any answer that isn't yes can be 'No' - otherwise, put in a list and check. I explained my changes inside of the script. The while statements removes the need for separate functions. Continue runs the previous try and break ends the statement. This can be further condensed, but I wanted to show the while/continue/break combination with try/except. | |
| Apr 19, 2017 at 18:13 | comment | added | 200_success | Also, please verify your indentation. | |
| Apr 19, 2017 at 17:47 | review | Late answers | |||
| Apr 19, 2017 at 17:53 | |||||
| Apr 19, 2017 at 17:36 | comment | added | Stephen Rauch | How and why does this condense the original script? Can you explain why you did the things you did? | |
| Apr 19, 2017 at 17:32 | review | First posts | |||
| Apr 19, 2017 at 17:36 | |||||
| Apr 19, 2017 at 17:28 | history | answered | Superspork | CC BY-SA 3.0 |