def main():
    total = 0
    clave = ' '
    while (clave != 'X') :
        clave = input("Teclea la clave ")
        if clave == "A":
            print(120)
            total += 120
        elif clave == "B" :
            print(250)
            total += 250
        elif clave == "C" :
            print(360)
            total += 360
    print(total)

if __name__=='__main__':
    main()

9536f43cf5519c4abc29d3d8056f9fdc2f1b28ec
<mask token>

def main():
    total = 0
    clave = ' '
    while clave != 'X':
        clave = input('Teclea la clave ')
        if clave == 'A':
            print(120)
            total += 120
        elif clave == 'B':
            print(250)
            total += 250
        elif clave == 'C':
            print(360)
            total += 360
    print(total)


<mask token>

def main():
    total = 0
    clave = ' '
    while clave != 'X':
        clave = input('Teclea la clave ')
        if clave == 'A':
            print(120)
            total += 120
        elif clave == 'B':
            print(250)
            total += 250
        elif clave == 'C':
            print(360)
            total += 360
    print(total)


if __name__ == '__main__':
    main()

def main():
    total = 0
    clave = ' '
    while (clave != 'X') :
        clave = input("Teclea la clave ")
        if clave == "A":
            print(120)
            total += 120
        elif clave == "B" :
            print(250)
            total += 250
        elif clave == "C" :
            print(360)
            total += 360
    print(total)

if __name__=='__main__':
    main()
