Python pass statement

Python pass is an empty statement to maintain the integrity of the program structure.

pass does nothing, and is generally used as a placeholder statement.

Python language The syntax of the pass statement is as follows:



# -*- coding: UTF-8 -*- 

# Output Python Each letter
for letter in 'Python':
if letter == 'h':
print 'this is pass Piece'
print 'Current letter :', letter

print "Good bye!"

The above example execution results:

welookups is optimized for learning.© welookups 2018 -
All Right Reserved and you agree to have read and accepted our term and condition