SarkariResultess QA Bank

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

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

Answer & Explanation

4 Answers
Verified Correct Answer

text = '''Hello World'''

text = '''Hello World'''
Additional Explanation
Triple quotes multiline strings के लिए उपयोग किए जाते हैं। पहले traceback की exact line और input value check करें।
Verified

text = """Hello\nWorld"""

text = """Hello\nWorld"""
Additional Explanation
यह विकल्प सही समाधान नहीं है।
Verified

text = multiline('Hello World')

text = multiline('Hello World')
Additional Explanation
यह विकल्प सही समाधान नहीं है।
Verified

text = <<Hello World>>

text = <>
Additional Explanation
यह विकल्प सही समाधान नहीं है।