PDA

View Full Version : Getting Loopy


bloredo
12-20-2017, 12:57 PM
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!