Frage im Vorstellungsgespräch bei Capgemini

Use of pass in Python

Antworten zu Vorstellungsgespräch

Anonym

4. Dez. 2019

If you have defined a class or a function, but do not wish to write the complete logic, for the time being, use "pass". It will help not throwing any exception

Anonym

26. Aug. 2022

If we define a function or class instead of writing the logic if we leave it empty then we can use pass keyword for the time being