How to Create an If Statement with No Content in Python


In this example, we will learn how to create an if statement with no content using the pass statement in Python.

Source Code

str1 = 'abc'
str2 = 'abc'

if str1 == str2:
    pass
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
Advertisement