coding180 icon
Coding180

If the program does not require any operation but requires it syntactically, what are the statements that can be used in Python?

Home > Interviews > Python


robort - 2022-08-29 15:50:50

pass Statement is a no-op. Nothing happens when executed. Lowercase passkeywords should be used. If you write Pass, you will encounter “NameError: name Pass is not defined” errors like this. Python statements are case-sensitive.

letter = "hai sethuraman"\nfor i in letter:
    if i == "a":
        pass
        print("pass statement is execute ..............")
    else:
        print(i)

 


user

Robort Gabriel

Lagos, Nigeria

Freelance Web Developer, Native Android Developer, and Coding Tutor.

Skills
  • UI / UX
  • JavaScript
  • Python
  • PHP
  • Kotlin
  • Java
  • Bootrap
  • Android
  • Laravel