Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # coding: utf-8
- # 13 melhor time
- # Amanda Luna / UFCG
- lista = []
- for i in range(3) :
- numero = int(raw_input())
- lista.append(numero)
- pos = lista.index(13)
- for i in range(pos,len(lista)) :
- lista.remove(lista[i])
- soma = sum(lista)
- if soma == 13 :
- print "0"
- else :
- print soma
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement