Yes between my last msg and reading yours I figured out that most boolean methods can just be the word return followed by boolean math. I wrote some beauties last night or the night before.... both I guess. My favorite was the leap year problem. Mostly because it made me think.... I cut down my code several times... I'd be working on a completely different problem and something about writing the current solution would prompt me to realize I had redundant checks in my previous code. I'm enjoying the course so far. I did send in a query to the teacher to see if it's OK to use things we haven't officially been taught in our solutions (like the ternary operator, which is still a valid construct for non-boolean methods that return strings.)
Campbell Richie wrote:This (old style guide link) is what you should write:-
Estel Lopez wrote:
Campbell Ritchie wrote:Something like?