How to use pass to create empty statement

Empty statement

The pass statement is just a placeholder saying I am doing nothing.


def foo_func():
   pass

or


if user_choice == 'do_calc':
   pass
else:
   pass




















Home »
  Python »
    Language Basics »




Python Basics
Operator
Statements
Function Definition
Class
Buildin Functions
Buildin Modules