Just a heads up: pass keyword here is unnecessary. You could simply write 5 % 2 == 0: print "No remainder" , and skip the else: pass entirely. ... <看更多>
The bulk of Python code takes the form of statements. ... The line: g. ... An if statement where one branch is composed of just pass statements could be ... ... <看更多>
This style guide is a list of dos and don'ts for Python programs. ... Each portion must fit on one line: true-expression, if-expression, else-expression. ... <看更多>