Code Genic is a blog which provides the codes for the daily life uses. All the codes are mostly for college related Projects or Lab work.
Saturday, March 2, 2019
Replace Function - Python3
ip=input("Enter the string: ") a=input("Enter the string you want to replace: ") b=input("Enter the new string: ") c=ip.replace(a,b) print("String after replacement:") print (c)
No comments:
Post a Comment