Multiple ChoiceIntermediate 30s
String Concatenation
Choose the best answer for: joining strings
Options
- 1"".join(list_of_strings) is faster than += in a loop
- 2+= in a loop is the fastest way to build a string
- 3join creates many intermediate strings and is slow
- 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.