python Programming Glossary: cond3
Python style: multiple-line conditions in IFs http://stackoverflow.com/questions/181530/python-style-multiple-line-conditions-in-ifs way to do this is if cond1 'val1' and cond2 'val2' and cond3 'val3' and cond4 'val4' do_something Isn't very very appealing.. the moment I'm using if cond1 'val1' and cond2 'val2' and cond3 'val3' and cond4 'val4' do_something Not very pretty I know.. line. Maybe use if cond1 'val1' and cond2 'val2' and cond3 'val3' and cond4 'val4' do_something Also don't forget the whitespace..
|