SarkariResultess QA Bank

Python में function कैसे define करते हैं? — error आने पर developer क्या करे?

Other 0 Views Verified
Python में function कैसे define करते हैं? — error आने पर developer क्या करे?
Sarkari Result QA Bank
Editorially reviewed exam information

Answer & Explanation

4 Answers
Verified

function add(a,b) { return a+b }

function add(a,b) { return a+b }
Additional Explanation
यह विकल्प सही समाधान नहीं है।
Verified Correct Answer

def add(a, b): return a + b

def add(a, b): return a + b
Additional Explanation
def keyword function definition के लिए है। पहले traceback की exact line और input value check करें।
Verified

define add(a,b):

define add(a,b):
Additional Explanation
यह विकल्प सही समाधान नहीं है।
Verified

func add(a,b): return a+b

func add(a,b): return a+b
Additional Explanation
यह विकल्प सही समाधान नहीं है।