Advertisement
brunuwolf

Untitled

Nov 14th, 2019
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. print('Partida de ida (Time 1 em casa)')
  2.  
  3. time1 = int(input('Time 1 :'))
  4. time2 = int(input('Time 2 :'))
  5.  
  6.  
  7. print('Partida de ida (Time 2 em casa)')
  8.  
  9. time3 = int(input('Time 1 :'))
  10. time4 = int(input('Time 2 :'))
  11.  
  12. saldo1 = time1 + time3
  13. saldo2 = time2 + time4
  14.  
  15. gols_fora1 = time4
  16. gols_fora2 = time2
  17.  
  18.  
  19. print('Resultado')
  20.  
  21. print('[Time1] {} X {} [Time2]'.format(saldo1,saldo2))
  22.  
  23.  
  24. if saldo1 > saldo2:
  25. print('Time 1 ganhou')
  26.  
  27. if saldo1 < saldo2:
  28. print('Time 2 ganhou')
  29.  
  30. if gols_fora1 == gols_fora2 and saldo1 == saldo2:
  31. print('Empatou , Pênaults')
  32.  
  33. elif saldo1 == saldo2:
  34.  
  35. if gols_fora1 > gols_fora2:
  36. print('O time 1 ganhou')
  37. else:
  38. print('O time 2 ganhou')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement