What Will Be The Output Of The Following Python Functionp Pre #138
What will be the output of the following Python function?</p> <pre><code class="language-python">def f(p, q): return p%q f(0, 2) f(2, 0)</code></pre>
This multiple choice question (MCQ) is related to the book/course
gs gs109 Python.
It can also be found in
gs gs109 Formatting & Decorators in Python - Python Decorators - Quiz No.1.
What will be the output of the following Python function?
def f(p, q): return p%q f(0, 2) f(2, 0)
0 0 Zero Division Error Zero Division Error 0 Zero Division Error Zero Division Error 0