Alice Community

Alice Community (
-   The Lounge (
-   -   Getting Loopy (

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 11:57 PM.

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