Interviewer And Interviewee Guide

Python Developer Interview Question:

Explain me what Is The Statement That Can Be Used In Python If The Program Requires No Action But Requires It Syntactically?

Submitted by: Muhammad
The pass statement is a null operation. Nothing happens when it executes. You should use “pass” keyword in lowercase. If you write “Pass” you'll face an error like “NameError: name Pass is not defined.” Python statements are case sensitive.

letter = "hai friend"
for i in letter:
if i == "a":
pass
print("pass statement is execute ..............")
else:
print(i)
Submitted by: Muhammad

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