SarkariResultess QA Bank

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

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

Answer & Explanation

4 Answers
Verified Correct Answer

point = (10, 20)

point = (10, 20)
Additional Explanation
Parentheses tuple के लिए सामान्य syntax है। पहले traceback की exact line और input value check करें।
Verified

point = {10,20}

point = {10,20}
Additional Explanation
यह विकल्प सही समाधान नहीं है।
Verified

tuple point = 10,20

tuple point = 10,20
Additional Explanation
यह विकल्प सही समाधान नहीं है।
Verified

point = [10, 20]

point = [10, 20]
Additional Explanation
यह विकल्प सही समाधान नहीं है।