0

What is the pass statement in Python?

def func(*args): pass

14th Sep 2020, 4:02 PM
Bekure
Bekure - avatar
2 ответов
+ 5
You can use pass also in all situations, when a line of code is expected, but not jet ready. Can be used in: if num < 10: pass else: pass or: def compare(num1, num2): pass compare(3, 7)
14th Sep 2020, 4:36 PM
Lothar
Lothar - avatar