हिंदी

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.partition(',')) - 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.partition(','))

एक पंक्ति में उत्तर

उत्तर

('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. ix. | पृष्ठ १८८
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×