def saveToFile(games): f = LamecryptFile('savedgames', 'w') for g in games: f.write(repr(g) + "\n") f.close
def saveToFile(highscores): f = LamecryptFile('highscores', 'w') for h in highscores: f.write(str(h) + "\n") f.close()