मराठी

Consider the following string myAddress: myAddress = "WZ-1, New Ganga Nagar, New Delhi" What will be the output of the following string operation: print(myAddress.split(' ')) - Computer Science (Python)

Advertisements
Advertisements

प्रश्न

Consider the following string myAddress:

myAddress = "WZ-1, New Ganga Nagar, New Delhi"

What will be the output of the following string operation:

print(myAddress.split(' '))

एका वाक्यात उत्तर

उत्तर

['WZ-1, New', 'Ganga', 'Nagar,New', 'Delhi']

shaalaa.com
Built-in String Functions
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 8: Strings - Exercise [पृष्ठ १८८]

APPEARS IN

एनसीईआरटी Computer Science [English] Class 11
पाठ 8 Strings
Exercise | Q 2. vii. | पृष्ठ १८८
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×