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 [पृष्ठ १८८]
