Following this question , I began to think, that it is a fairly common pattern, to interpret a string with "pairs" of values separated by some character, and how to solve it in Python ?. Let's see the example:
We have this string:
texto = "Respuesta1_10|Respuesta2_50|Respuesta4_90|Respuesta5_33"
and we want to transform it into two list type variables in the following way:
respuestas = ["Respuesta1", "Respuesta2", "Respuesta3", "Respuesta5"]
status = [10, 50, 90, 33]
What shapes do we have in Python to achieve it?