What is the output of the following expression? Sports = "Paralympic Games"निम्नलिखित अभिव्यक्ति (expression) का आउटपुट क्या है?
What is the output of the following expression?
Sports = "Paralympic Games"
print ( Sports. Split ( "m"))
निम्नलिखित अभिव्यक्ति (expression) का आउटपुट क्या है?
Sports = "Paralympic Games"
print ( Sports. Split ( "m"))
Show answerHide answer
Correct answer: (D) [ 'Paraly', 'pic Ga', 'es'][ 'Paraly', 'pic Ga', 'es']
Explanation
split("m") cuts the string at every "m" and drops the separator: "Paralympic Games" gives ['Paraly', 'pic Ga', 'es']. split always returns a list, not a tuple.split("m") स्ट्रिंग को हर "m" पर काटता है और विभाजक हटा देता है: "Paralympic Games" से ['Paraly', 'pic Ga', 'es'] मिलता है। split हमेशा list लौटाता है, tuple नहीं।