1) There is a function in which there is a check for the existence of a txt file. If it is, then the program opens it (with the help of with), reads the contents of the line (there is 1 line in the file) and writes to the variable nomber. and if there is no such file, it creates it and writes a predefined value there (for example, '0' (str (0))) and writes this '0' into the variable nomber. Number is specified in the return function (return number)
2) In the second function, a number (sum) is set which must be added to the existing one (obtained from the file and written to the variable number) and should be written to the variable plus the amount already received by addition. But with plus = int (sum) + int (number), the number is a local variable, and if you make it global before that, it is also an error.
How to add return 1 functions and the number of 2 functions so that it is a return of 2 functions?