BINF 2111: looping, user input, and complex conditionals