Home > Article > Backend Development > Python pass statement
Python pass is an empty statement to maintain the integrity of the program structure.
The Python language pass statement syntax is as follows:
pass
Example:
#!/usr/bin/python for letter in 'Python': if letter == 'h': pass print 'This is pass block' print 'Current Letter :', letter print "Good bye!"
The above example execution result:
Current Letter : P
Current Letter : y
Current Letter : t
This is pass block
Current Letter : h
Current Letter : o
Current Letter : n
Good bye!