Advertisement
brunuwolf

Untitled

Nov 13th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1.  
  2. time1 = 0
  3. time2 = 0
  4. contador = 1
  5.  
  6. while contador < 7:
  7.  
  8. time1_chute = int(input('Chute time 1 :'))
  9.  
  10. if time1_chute == 1:
  11. print('Acertou o chute !')
  12. time1 += 1
  13. if contador == 6:
  14. break
  15.  
  16. else:
  17. print('Errou o chute')
  18.  
  19. print('--------------------')
  20.  
  21. time2_chute = int(input('Chute time 2 :'))
  22.  
  23. if time2_chute == 1:
  24. print('Acertou o chute !')
  25. time2 += 1
  26. if contador == 6:
  27. break
  28.  
  29. else:
  30. print('Errou o chute ')
  31.  
  32. print('--------------------')
  33.  
  34. contador += 1
  35. print(contador)
  36.  
  37.  
  38. if time1 > time2:
  39. print('Time 1 ganhou por {} X {}'.format(time1,time2))
  40. else:
  41. print('Time 2 ganhou por {} X {}'.format(time2,time1))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement