Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   The Lounge (http://www.alice.org/community/forumdisplay.php?f=4)
-   -   Getting Loopy (http://www.alice.org/community/showthread.php?t=11860)

bloredo 12-20-2017 11:57 AM

Getting Loopy
 
Lab 2 at first seemed to be pretty easy. I know with working with our coders at work we use a lot of loop statements. However I was stuck one little but huge part. My program was looping if the user selected Yes (which is what I wanted). However once the user selected No, it still looped! It was quite frustrating. I ran over the code 100 times and I knew I was missing something... That something was my While statement was set to True, basically true=false!

I felt dumb because I should of caught that in the beginning. Well going forward I will make sure my functions have a false statement to compare to so its not an infinite loop!


All times are GMT -5. The time now is 06:59 PM.

Copyright ©2021, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.