Domanda di colloquio di Accenture

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

Risposta di colloquio

Anonimo

30 giu 2026

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