in Python by
Q:
What Is The Statement That Can Be Used In Python If The Program Requires No Action But Requires It Syntactically?

▼ Show 1 Answer

0 votes
by

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 sethuraman"

for i in letter:

    if i == "a":

        pass

        print("pass statement is execute ..............")

    else:

        print(i)

Python
Learn More with Madanswer

Related questions

0 votes
asked Jun 28, 2020 in Python by Robindeniel
...