1# "pass" is a function that basically does nothing.
2# it can be used to ignore an error in a try block.
3
4i = input("Please enter any character")
5try:
6 int(i)
7except ValueError:
8 pass
9
10# it can also be used if you plan to implement certain code later
11
12def attack():
13 #implement actual attack code later
14 pass
15
16# a substitute for pass is to print nothing
17print()
18
1# For empty python shtuff, if you don't have the code for funcs (etc) and you don't want to have the indented block error, you can use this.
2def helloooo():
3 pass
4helloooo()
5
6# Works perfectly!
1# pass in python is basically a placeholder thing to put in empty functions/classes
2# example
3
4def whatever():
5 pass
6
7class whatever():
8 pass
1def myEmptyFunc():
2 # do nothing
3 pass
4myEmptyFunc() # nothing happens
5## Without the pass keyword
6# File "<stdin>", line 3
7# IndentationError: expected an indented block