4

I have looked on the internet regarding this issue and could not find a definitive answer so I posted the question here.

Which one do I use if I want to change something to something else?

Change that code to this code.

or

Change that code with this code.

?

RubioRic
  • 6,855
  • 3
  • 26
  • 46
Karlo Kokkak
  • 173
  • 1
  • 7

1 Answers1

5

In your example, you would use "to" to show transformation

Change that code to this code.
Change that Python code to this R code.

but as usual it depends what you want to say.

If you wanted to show replacement, you might use

Exchange that (piece) of code with this (piece) of code.

If you want to say how to make a change happen (by way of), you might use

You can change that French article to English with this translator.

Peter
  • 66,233
  • 6
  • 65
  • 125