Monday, February 4, 2013

February 4, 2013

I've spent the past several years keeping up with technology, and I'm at the point where I need to start keeping track of what I'm learning and what I'm working on.

At the moment my biggest projects are an eBook which is about 80% finished and a mobile and web app called Paris4Parents to help parents find fun stuff to do with their kids in Paris.

I'm four days into the Python track at CodeAcademy, and I hit my first snag today. Nothing insurmountable. It's the Review exercise for Conditionals and Control Flow and here's the problem set:


Write an if statement inthe_flying_circus(). It must include:
  1. andor, or not;
  2. ==!=<<=>, or >=;
  3. an ifelif, AND else statement;
  4. it must return True when evaluated.

So I need to do a little research and throw some code against the wall and see how much sticks. I'm about a week away from my first Python coding project (at my current pace) and things are getting progressively more difficult. I've yet to see the real usefulness in what I've learned so far, but I know that will come.

I also started to learn Ruby on Rails but put that on hold temporarily to try out the CodeAcademy Python track. So far Python syntax has been really easy and intuitive, so I'm enjoying that. 

That's it for today, I just wanted to get this thing started so I'd have a place to make some notes and keep track of stuff.

UPDATE: I did a little research on the CodeAcademy forum and came up with the following correct answer to the problem set:


def the_flying_circus():
    #Start coding here!
    if 2 < 4:
        return True
    elif False and False:
    return False
    else:
    return False


Not sure I completely understand why that was what they were looking for, but I understand the concept of conditionals and I get control flow and order of execution, so I guess that's it for this lesson. Now I have another exercise to work through if I'm not mistaken.

No comments:

Post a Comment