Python Question: Download Questions PDF
What is the statement that can be used in Python if a statement is required syntactically but the program requires no action?
![Python Interview Answer Python Interview Question](https://globalguideline.com/public/images/interview/19.png)
Answer:
Pass is a no-operation/action statement in python
If we want to load a module and if it does not exist, let us not bother, let us try to do other task. The following example demonstrates that.
Try:
Import module1
Except:
Pass
If we want to load a module and if it does not exist, let us not bother, let us try to do other task. The following example demonstrates that.
Try:
Import module1
Except:
Pass
Download Python Interview Questions And Answers
PDF
Previous Question | Next Question |
How is the Implementation of Pythons dictionaries done? | What is all the operating system that Python can run on? |