SarkariResultess QA Bank

Python में multiline string का सामान्य तरीका क्या है? — interview में इसका सही जवाब क्या है?

Other 0 Views Verified
Python में multiline string का सामान्य तरीका क्या है? — interview में इसका सही जवाब क्या है?
Sarkari Result QA Bank
Editorially reviewed exam information

Answer & Explanation

4 Answers
Verified

text = <<Hello World>>

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

text = multiline('Hello World')

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

text = """Hello\nWorld"""

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

text = '''Hello World'''

text = '''Hello World'''
Additional Explanation
Triple quotes multiline strings के लिए उपयोग किए जाते हैं।