python Programming Glossary: cond1
Python style: multiple-line conditions in IFs http://stackoverflow.com/questions/181530/python-style-multiple-line-conditions-in-ifs to several lines. The most obvious way to do this is if cond1 'val1' and cond2 'val2' and cond3 'val3' and cond4 'val4' do_something.. of 4 spaces. Edit By the way for the moment I'm using if cond1 'val1' and cond2 'val2' and cond3 'val3' and cond4 'val4' do_something.. use 4 spaces on your second conditional line. Maybe use if cond1 'val1' and cond2 'val2' and cond3 'val3' and cond4 'val4' do_something..
|