Strings are Immutableuser_name = "Xtra"# user_name[2] = "R" - Errornew_user_name = user_name.replace("r", "R")print(new_user_name)print(user_name)user_name = "Coding"print(user_name)
Post a Comment