Interviewer And Interviewee Guide

Python Interview Question:

What is the statement that can be used in Python if a statement is required syntactically but the program requires no action?

Submitted by: Administrator
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
Submitted by: Administrator

Read Online Python Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.