मराठी

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.replace('New', 'Old'))

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.replace('New', 'Old'))

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

उत्तर

WZ-1, Old Ganga Nagar, Old Delhi

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

APPEARS IN

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

Englishहिंदीमराठी


      Forgot password?
Use app×