Ask
your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW)
72 Online
OpenStudy (anonymous):
why doesn't python 2.7.1 say 'even' or 'odd' like it does in lecture 2 when i try to run it?
Still Need Help?
Join the QuestionCove community and study together with friends!
OpenStudy (anonymous):
I typed this in to another window: x=15 if (x/2)*2 == x: print 'even' else: print 'odd' and hit 'run in python shell' and it's not doing anything. i feel like an idiot. someone help me!
OpenStudy (anonymous):
nevermind, I understand now that you have to 'run module', but it says that "else" is a syntax error? wtf? is "else" not used in this version?
OpenStudy (shadowfiend):
else should be indented at the same level as if: if (x / 2) * 2 == x: print 'even' else: print 'odd'
OpenStudy (anonymous):
hi I am new to computer programming. How is python to start with?
OpenStudy (python):
it is the best language to start learning computer programming, because it is soo simple
Can't find your answer?
Make a FREE account and ask your own questions, OR help others and earn volunteer hours!
Join our real-time social learning platform and learn together with your friends!
Join our real-time social learning platform and learn together with your friends!
Latest Questions
MAGABACK:
!!!BREAKING NEWS!!! THE #1 HIGH SCHOOL BASKETBALL PLAYER IN THE NATION SIGNED WIT
9 minutes ago
9 Replies
2 Medals
Skylar15:
I had a dream It was the greatest thing Iu2019ve felt in a month In my dream you walked through the door, you finally came home again I stood in disbelief a
5 minutes ago
14 Replies
1 Medal
luhsky25:
R I P my cousin jayden I love you cuz I hope your having a good time in heaven
9 minutes ago
5 Replies
3 Medals
zariahispretty:
How Do I get my old account back if password not working
11 hours ago
9 Replies
1 Medal
Bot1:
if i am going through some kind of depression right now, how do i help myself, wi
8 hours ago
38 Replies
11 Medals
Kay06:
I was given the theme of thinking youre in love, but its merely just a distraction.
3 hours ago
9 Replies
2 Medals