PCAP

Study mode — explanations shown

1

Strings

medium

When processing a large text file, a developer notices that using str.replace() in a loop is slow. Which alternative is most efficient for multiple replacements?

0 of 10 answered