Articles → Python → Pass Statement In PythonPass Statement In PythonIn this article, we will discuss the pass statement in Python.Scenario Consider a scenario where you have created a utility that reads the data from a different data source like Excel, JSON, XML, etc., and import it into the database. You have implemented the logic for JSON and XML, but you are planning to implement Excel logic in the future.To accomplish that, you write an if condition and add a placeholder. Here, the pass statement comes into the picture.Purpose The pass statement creates a placeholder for future code.Example option = input("Please enter your data source") if(option == "EXCEL"): passPosted By - Karan Gupta Posted On - Tuesday, May 21, 2019 Query/Feedback Your Email Id** Subject* Query/Feedback Characters remaining 250**
option = input("Please enter your data source") if(option == "EXCEL"): pass
Query/Feedback