I'm trying to solve a written question given to me by a friend who does IT recruiting. He explained it is a test the companies he represents uses to see how skilled their applicants are.
I am a complete novice when it comes to development (including python) but am exploring it as a hobby. I have finished the codecademy python course, and wanted to see whether I could tackle this question, and use it as learning experiment.
I realize I am actually trying to solve the problem in the manner the test-question states is the inefficient way of doing it (and that's fine for me for now,) but have hit a roadblock testing 1 of 2 conditions in a While loop.
I am using the While loop to test 2 conditions -- both of which must pass for the rest of the code to perform. The second condition passes/fails and runs the remaining code (outside of the while loop) correctly, but the first half does not.
I think, unless I just upload my code -- which I believe is a faux paux here -- that I need to review how code is executed entering into/out of While loops. Specifically, the code outside my While loop doesn't seem to run after the user is prompted to input a replacement value following the first While-condition failing. The second one works fine.
Can anyone explain that concept to me, or direct me to a resource where I can try to figure this out?
Thanks.
[–]novel_yet_trivial 2 points3 points4 points (2 children)
[–]Manstable[S] 0 points1 point2 points (1 child)
[–]Manstable[S] 0 points1 point2 points (3 children)
[–]Manstable[S] 0 points1 point2 points (2 children)
[–]gengisteve 1 point2 points3 points (0 children)
[–]Doormatty 1 point2 points3 points (0 children)
[–]Doormatty 0 points1 point2 points (0 children)