Livejournal
Log in
Post
Friends
My journal
gatita_militar
It has begun
Jul 09, 2009 17:33
Lord help me, I'm nesting conditionals like it's the conditionals apocalypse.
work
,
python
,
neeeeeeeeeeeeerds
Leave a comment
Comments 4
necaris
July 9 2009, 18:57:36 UTC
nested conditionals are awesome. but frequently unnecessary. why are you nesting them?
Reply
gatita_militar
July 10 2009, 09:30:55 UTC
It was unnecessary, the book said "it will usually be unnecessary", but then it gave me an exercise where I thought it was a good idea.
Shame! Shame on me! (It didn't even work, I had to do them as elif elif else instead)
I was making what I assume is a fairly normal "Baby's First Program" that takes raw input and tells you if it's a triangle.
Reply
necaris
July 11 2009, 05:45:33 UTC
Which book are you using?
Reply
gatita_militar
July 13 2009, 12:08:18 UTC
Python for software design: How to Think Like a Computer Scientist
Reply
Leave a comment
Up
Comments 4
Reply
Shame! Shame on me! (It didn't even work, I had to do them as elif elif else instead)
I was making what I assume is a fairly normal "Baby's First Program" that takes raw input and tells you if it's a triangle.
Reply
Reply
Reply
Leave a comment