@AbdulQurashi/

LightpinkDistinctButtons

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
totalFor = 0
totalAgainst = 0
win = 0
loss = 0
draw = 0
anotherEntry = 'Y'
while anotherEntry == 'Y':

    goalsFor = int(input('Enter goals for:'))

    goalsAgainst = int(input('Enter goals against:'))
    totalFor = totalFor + goalsFor
    totalAgainst = totalAgainst + goalsAgainst
    if goalsFor > goalsAgainst:
        win = win + 1


    elif goalsFor < goalsAgainst:
        loss = loss + 1

    else:
        draw = draw + 1



    anotherEntry = input("Press 'Y' to enter another result")

    
print ('Total wins:',win)
print('Total losses:',loss)
print('Total draws:',draw)