79834194

Date: 2025-11-30 21:44:43
Score: 1
Natty:
Report link

I discovered an efficient solution using Python's zip function, which pairs corresponding elements from multiple sequences.

Example:

string_1 = 'ABC'
string_2 = '123'
result = list(zip(string_1, string_2))
# Output: [('A', '1'), ('B', '2'), ('C', '3')]
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ivan Zamula