So i have these defined:
def highscorenumber():
file = open('GUESS THE NUMBER HIGHSCORE NUMBER.txt', 'r')
highscorenum = file.readline(1)
def highscorename():
file = open('GUESS THE NUMBER HIGHSCORE NAME.txt', 'r')
highscorenum = file.readline(1)
And these are saved in the same directory as the program. "GUESS THE NUMBER HIGHSCORE NUMBER.txt" when opened says: "1"
And "GUESS THE NUMBER HIGHSCORE NAME.txt" when opened says "max".
Yet when I run:
print("The current highscore is",highscorenumber,"set by",highscorename)
it says:
The current highscore is <function highscorenumber at 0x0000000002D46730> set by <function highscorename at 0x0000000001F67730>
Why does it say this instead of "The current highscore is 1 set by max"?