All challenges
Multiple ChoiceIntermediate 30s

String Concatenation

Choose the best answer for: joining strings
Options
  1. 1"".join(list_of_strings) is faster than += in a loop
  2. 2+= in a loop is the fastest way to build a string
  3. 3join creates many intermediate strings and is slow
  4. 4f-strings are the slowest way to join many strings

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle