Explain me what Is The Statement That Can Be Used In Python If The Program Requires No Action But Requires It Syntactically?
Submitted by: MuhammadThe 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
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
Top Python Developer Questions
☺ | Do you know what Is The Key Difference Between A List And The Tuple? |
☺ | Tell me how Does The Ternary Operator Work In Python? |
☺ | Do you know what Does The <Yield> Keyword Do In Python? |
☺ | Tell me what is PEP 8? |
☺ | Tell me what are the built-in type does python provides? |
Top Web Developer Categories
☺ | Bootstrap Interview Questions. |
☺ | Front End Web Developer Interview Questions. |
☺ | Typography Interview Questions. |
☺ | Laravel PHP Developer Interview Questions. |
☺ | Junior Developer PHP Interview Questions. |