3 AnswersNew Answer
It has nothing to do with if statements. Short programs you can run from the prompt. With longer programs it is more easy to put them in a file, save it, and then run that file. When you use if statement your program is likely to get longer. That is probably why they made the remark.
@Paul Jacobs I see, thank you Paul
I think what it mean is sometimes the if statement gets very long so if you use separate files inside of it, it will make it easier to read. import file.py if x==1 call something from file.py else call otherthing from file.py So you import what you need and then fetch the classes or functions that you need in the if statement. I am also learning Python so does it make any sense?