Ich habe eine kleine Funktion geschrieben, um die Auswertung einiger Daten zu vereifachen.
Code: Alles auswählen
def Auswertung1(): #Daten von BJbasic / BJbasic_Ace auswerten
w = int(input('Draw Wins:'))
x = int(input('Draw Losses:'))
y = int(input('Stand Wins:'))
z = int(input('Stand Losses:'))
if w - x > y - z:
print('Drawing is better')
else:
print('Standing is better')Code: Alles auswählen
Auswertung1()
Draw Wins:0.2582
Traceback (most recent call last):
File "<pyshell#294>", line 1, in <module>
Auswertung1()
File "<pyshell#292>", line 2, in Auswertung1
w = int(input('Draw Wins:'))
ValueError: invalid literal for int() with base 10: '0.2582'Lg
