- Help Center
- Python Programming
-
Data Science Bootcamp
-
Python Programming
-
Machine Learning
-
Data Analysis
-
Pricing
-
Registration
-
R Language
-
SQL
-
Power BI
-
Homework and Notebooks
-
Platform Related Issues
-
Programming and Tools
-
Large Language Models Bootcamp
-
Blog
-
Employment Assistance
-
Partnerships
-
Data Science for Business
-
Python for Data Science
-
Introduction to Power BI
What Is the Purpose of the Pass Statement?
The pass statement is used when there's a syntactic but not an operational requirement. For example - The program below prints a string ignoring the spaces.
var="Si mp le"
for i in var:
if i==" ":
pass
else:
print(i,end="")