2011년 9월 28일 수요일

[Python] Control flow tool

1. if statement

if x<0:
     x = 0
elif x== 0:
     print 'zero'
elif x==1:
     print 'Single'
else:
     print 'More'


Don't forget indent!

댓글 없음: