I have tried to print this function into a .txt file but I can\'t get it to work. I would like to create another function that does this to then being able to create a button th