Question d’entretien chez Accenture

# ---------------------------------- # 3. Expand String # Input : a4b3c5 # Output: aaaabbbccccc # ----------------------------------

Réponse à la question d'entretien

Utilisateur anonyme

30 juin 2026

s = "a4b3c5" result = "" for i in range(0, len(s), 2): result += s[i] * int(s[i+1]) print(result)