Я пытаюсь создать простой сценарий игры со счетом и хочу сохранить наибольшее подсчитанное число как наивысший балл. выполнив что-то вроде if currentscore > highscore: highscore = currentscore!
print("Welcome to a pointless counter")
count = 0
while True:
button = input("\nPress enter to add 1!\n")
if button == (""):
count = count + 1
print("\n",count,"\n")
else:
print("\nThats not valid.\n")
Подробнее здесь: https://stackoverflow.com/questions/790 ... ble-string