Computer Science, asked by chandraprakash44, 5 months ago

What is the use of pass statement in Python ?

Answers

Answered by StarBugs
3

Python pass Statement

The pass statement is used as a placeholder for future code. When the pass statement is executed, nothing happens, but you avoid getting an error when empty code is not allowed. Empty code is not allowed in loops, function definitions, class definitions, or in if statements.

ItzGurung \beta oy

\huge\underline{\underline{\texttt{\pink{Follow \:me}}}}

Answered by shivam4944
1

Python pass Statement

The pass statement is used as a placeholder for future code. When the pass statement is executed, nothing happens, but you avoid getting an error when empty code is not allowed. Empty code is not allowed in loops, function definitions, class definitions, or in if statements.

Similar questions