Articles → Python → Pass Statement In PythonPass Statement In PythonIn this article, we will discuss about pass statement in python.Scenario Consider a scenario where you have created a utility that reads the data from different data source like excel, json, xml etc. and import it into 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, pass statement comes into picture.Purpose Pass statement creates a placeholder for future code.Example option = input("Please enter your data source") if(option == "EXCEL"): passOutput Click to EnlargePosted 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